Commit e664a536 authored by Daniel Teske's avatar Daniel Teske

Prevent duplicated project entries on failed project loading

Change-Id: I4505d0957398d47c40843dbcbf8ce25365f6501d
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent d51edeaf
......@@ -313,7 +313,10 @@ bool SessionManager::save()
projectFiles << pro->document()->fileName();
// 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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment