build: linux package

linux package
This commit is contained in:
Andreas Stallinger
2015-11-17 16:41:49 +01:00
parent 102bc8945a
commit 88b94a21d0
4 changed files with 34 additions and 35 deletions
+5 -5
View File
@@ -113,13 +113,13 @@ ApplicationSettings::ApplicationSettings()
std::vector<FilePath> ApplicationSettings::getRecentProjects() const
{
std::vector<FilePath> recentProjects = getPathValues("user/recent_projects/recent_project");
std::vector<FilePath>::iterator iter = recentProjects.end();
for( ; iter != recentProjects.begin(); iter--)
std::vector<FilePath> loadedRecentProjects = getPathValues("user/recent_projects/recent_project");
std::vector<FilePath> recentProjects;
for(FilePath project : loadedRecentProjects)
{
if(!(*iter).exists())
if(project.exists())
{
recentProjects.erase(iter);
recentProjects.push_back(project);
}
}
return recentProjects;