build: updated Mac build to Qt 5.5

This commit is contained in:
Eberhard Graether
2015-08-04 15:38:12 +02:00
parent e7a977dd5c
commit 9c4e3950b6
3 changed files with 16 additions and 7 deletions
+8 -3
View File
@@ -65,12 +65,17 @@ void Application::loadProject(const std::string& projectSettingsFilePath)
m_project->parseCode();
std::vector<std::string> recentProjects = ApplicationSettings::getInstance()->getRecentProjects();
recentProjects.erase(std::find(recentProjects.begin(),recentProjects.end(),projectSettingsFilePath));
recentProjects.insert(recentProjects.begin(),projectSettingsFilePath);
if(recentProjects.size() > 7)
if (recentProjects.size())
{
recentProjects.erase(std::find(recentProjects.begin(), recentProjects.end(), projectSettingsFilePath));
}
recentProjects.insert(recentProjects.begin(), projectSettingsFilePath);
if (recentProjects.size() > 7)
{
recentProjects.pop_back();
}
ApplicationSettings::getInstance()->setRecentProjects(recentProjects);
ApplicationSettings::getInstance()->save("data/ApplicationSettings.xml");
}