Commit bc3af83e authored by Krzysztof Stokop's avatar Krzysztof Stokop
Browse files

Update kateprojectplugin.cpp and kateprojectplugin.h

parent fa72c7f1
......@@ -190,7 +190,7 @@ KateProject *KateProjectPlugin::projectForDir(QDir dir)
}
void KateProjectPlugin::deleteProject(KateProject *project)
bool KateProjectPlugin::closeProject(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;
}
......
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment