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
bc3af83e
Commit
bc3af83e
authored
Mar 21, 2021
by
Krzysztof Stokop
Browse files
Update kateprojectplugin.cpp and kateprojectplugin.h
parent
fa72c7f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
addons/project/kateprojectplugin.cpp
View file @
bc3af83e
...
...
@@ -190,7 +190,7 @@ KateProject *KateProjectPlugin::projectForDir(QDir dir)
}
void
KateProjectPlugin
::
delet
eProject
(
KateProject
*
project
)
bool
KateProjectPlugin
::
clos
eProject
(
KateProject
*
project
)
{
m_projects
.
removeOne
(
project
);
for
(
KateProject
*
projectIterator
:
m_projects
)
...
...
@@ -199,8 +199,10 @@ void KateProjectPlugin::deleteProject(KateProject *project)
{
m_fileWatcher
.
removePath
(
QFileInfo
(
projectIterator
->
fileName
()).
canonicalPath
());
delete
projectIterator
;
return
true
;
}
}
return
false
;
}
...
...
addons/project/kateprojectplugin.h
View file @
bc3af83e
...
...
@@ -59,7 +59,12 @@ public:
*/
KateProject
*
projectForDir
(
QDir
dir
);
void
deleteProject
(
KateProject
*
project
);
/**
* Search and close project for given project, if possible.
* @param project to search matching project for closing
* @return true if successful
*/
bool
closeProject
(
KateProject
*
project
);
/**
* Search and open project that contains given url, if possible.
...
...
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