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
f31132ae
Commit
f31132ae
authored
Aug 17, 2022
by
Waqar Ahmed
Browse files
Dont add empty path to QFileSystemWatcher
parent
f6084b80
Pipeline
#218931
passed with stage
in 22 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
addons/project/kateprojectpluginview.cpp
View file @
f31132ae
...
...
@@ -791,7 +791,10 @@ void KateProjectPluginView::slotUpdateStatus(bool visible)
if
(
auto
widget
=
static_cast
<
GitWidget
*>
(
m_stackedGitViews
->
currentWidget
()))
{
// To support separate-git-dir always use dotGitPath
// We need to add the path every time again because it's always a different file
m_gitChangedWatcher
.
addPath
(
widget
->
indexPath
());
const
auto
path
=
widget
->
indexPath
();
if
(
!
path
.
isEmpty
())
{
m_gitChangedWatcher
.
addPath
(
path
);
}
widget
->
updateStatus
();
}
}
...
...
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