Skip to content
GitLab
Menu
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
c6d41320
Commit
c6d41320
authored
Feb 12, 2022
by
Giovana Vitor Dionisio Santana
✍🏾
Committed by
Christoph Cullmann
Mar 11, 2022
Browse files
fixing path removal when closing project
parent
f03e678c
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/project/kateprojectplugin.cpp
View file @
c6d41320
...
...
@@ -123,7 +123,14 @@ KateProjectPlugin::~KateProjectPlugin()
unregisterVariables
();
for
(
KateProject
*
project
:
qAsConst
(
m_projects
))
{
<<<<<<<
HEAD
delete
project
;
=======
if
(
!
QFileInfo
(
project
->
fileName
()).
canonicalPath
().
isEmpty
()){
m_fileWatcher
.
removePath
(
QFileInfo
(
project
->
fileName
()).
canonicalPath
());
delete
project
;
}
>>>>>>>
e1da932a6
(
fixing
path
removal
when
closing
project
)
}
m_projects
.
clear
();
}
...
...
@@ -249,8 +256,16 @@ bool KateProjectPlugin::closeProject(KateProject *project)
Q_EMIT
pluginViewProjectClosing
(
project
);
if
(
m_projects
.
removeOne
(
project
))
{
<<<<<<<
HEAD
delete
project
;
return
true
;
=======
if
(
!
QFileInfo
(
project
->
fileName
()).
canonicalPath
().
isEmpty
()){
m_fileWatcher
.
removePath
(
QFileInfo
(
project
->
fileName
()).
canonicalPath
());
delete
project
;
return
true
;
}
>>>>>>>
e1da932a6
(
fixing
path
removal
when
closing
project
)
}
return
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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