Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
fa04f35d
Commit
fa04f35d
authored
Sep 05, 2022
by
Waqar Ahmed
Browse files
Fix filename when showing git history
parent
565b1004
Pipeline
#227550
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
addons/project/kateprojectview.cpp
View file @
fa04f35d
...
...
@@ -13,6 +13,7 @@
#include
"gitwidget.h"
#include
"kateprojectfiltermodel.h"
#include
"kateprojectpluginview.h"
#include
"ktexteditor_utils.h"
#include
<KTextEditor/Document>
#include
<KTextEditor/Editor>
...
...
@@ -160,7 +161,7 @@ void KateProjectView::showFileGitHistory(const QString &file)
connect
(
fhs
,
&
FileHistoryWidget
::
commitClicked
,
this
,
[
this
,
file
](
const
QByteArray
&
diff
,
const
QString
&
commit
)
{
auto
mw
=
m_pluginView
->
mainWindow
()
->
window
();
DiffParams
d
;
d
.
tabTitle
=
QStringLiteral
(
"%1[%2]"
).
arg
(
file
,
commit
);
d
.
tabTitle
=
QStringLiteral
(
"%1[%2]"
).
arg
(
Utils
::
fileNameFromPath
(
file
)
,
commit
);
QMetaObject
::
invokeMethod
(
mw
,
"showDiff"
,
Q_ARG
(
QByteArray
,
diff
),
Q_ARG
(
DiffParams
,
d
));
});
connect
(
fhs
,
&
FileHistoryWidget
::
errorMessage
,
m_pluginView
,
[
this
](
const
QString
&
s
,
bool
warn
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment