ui: add menu entry to close the current project (issue #722)

This commit is contained in:
mlangkabel
2019-10-18 13:05:27 +02:00
committed by Eberhard Graether
parent dc24bae943
commit 6b692ff0e9
13 changed files with 70 additions and 14 deletions
@@ -524,8 +524,8 @@ void UndoRedoController::replayCommand(std::list<Command>::iterator it)
}
else if (m->getType() == MessageActivateErrors::getStaticType())
{
Project* project = Application::getInstance()->getCurrentProject().get();
if (project && project->isIndexing())
std::shared_ptr<const Project> currentProject = Application::getInstance()->getCurrentProject();
if (currentProject && currentProject->isIndexing())
{
Application::getInstance()->handleDialog(L"Errors cannot be activated while indexing.");