Prevent duplicated project entries on failed project loading

Change-Id: I4505d0957398d47c40843dbcbf8ce25365f6501d
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Daniel Teske
2012-05-08 17:50:15 +02:00
parent d51edeaf51
commit e664a53668

View File

@@ -313,7 +313,10 @@ bool SessionManager::save()
projectFiles << pro->document()->fileName(); projectFiles << pro->document()->fileName();
// Restore infromation on projects that failed to load: // Restore infromation on projects that failed to load:
projectFiles.append(m_failedProjects); // don't readd projects to the list, which the user loaded
foreach (const QString &failed, m_failedProjects)
if (!projectFiles.contains(failed))
projectFiles << failed;
writer.saveValue(QLatin1String("ProjectList"), projectFiles); writer.saveValue(QLatin1String("ProjectList"), projectFiles);