Commit 5937f2cf authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Do not convert empty .user files to newer versions

parent 7da7ae9b
......@@ -169,8 +169,11 @@ QVariantMap UserFileAccessor::restoreSettings(Project *project)
if (m_lastVersion < 0 || !project)
return QVariantMap();
PersistentSettingsReader reader;
QString fileName(fileNameFor(project->file()->fileName()));
if (!QFile::exists(fileName))
return QVariantMap();
PersistentSettingsReader reader;
reader.load(fileName);
QVariantMap map(reader.restoreValues());
......
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