src: Various fixes from testing

* fixed deleted project could still be selected in the recent project menu
* fixed project file not loaded when declining for reload
* fixed main in tutorial description not clickable
* fixed clang warnings
* fixed commands not showing up in autocompletion
* fixed classes were expanded when activating aggregation
* fixed crash when messagelisteners tried to unregister after messagequeue was destructed
This commit is contained in:
Eberhard Graether
2016-04-25 17:27:20 +02:00
parent e17c42b2ef
commit f9aed67776
12 changed files with 32 additions and 18 deletions
+4 -2
View File
@@ -107,7 +107,6 @@ void Application::createAndLoadProject(const FilePath& projectSettingsFilePath)
if (m_hasGUI)
{
m_mainView->setTitle("Coati - " + projectSettingsFilePath.fileName());
m_mainView->updateRecentProjectMenu();
m_mainView->hideStartScreen();
m_componentManager->refreshViews();
@@ -227,6 +226,7 @@ void Application::handleMessage(MessageLoadProject* message)
if (result == 1)
{
m_project->load(projectSettingsFilePath);
return;
}
}
@@ -296,12 +296,14 @@ void Application::updateRecentProjects(const FilePath& projectSettingsFilePath)
}
recentProjects.insert(recentProjects.begin(), projectSettingsFilePath);
if (recentProjects.size() > 7)
while (recentProjects.size() > 7)
{
recentProjects.pop_back();
}
appSettings->setRecentProjects(recentProjects);
appSettings->save(UserPaths::getAppSettingsPath());
m_mainView->updateRecentProjectMenu();
}
}