ui: add menu entry to close the current project (issue #722)
This commit is contained in:
committed by
Eberhard Graether
parent
dc24bae943
commit
6b692ff0e9
@@ -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.");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user