Fix system options not being retained after restart

Auto-suspend unmodified files checkbox was always checked after restart,
and min files to keep opened was set to 30.

Change-Id: I7f52fee41155188ee8389e922fdc265f8c0a6459
Task-number: QTCREATORBUG-17844
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Vladislav Tronko
2017-03-15 18:56:40 +02:00
committed by Tobias Hunger
parent 4033471aa9
commit c308ec7b73

View File

@@ -1036,6 +1036,12 @@ void EditorManagerPrivate::readSettings()
d->m_autoSaveEnabled = qs->value(autoSaveEnabledKey).toBool();
d->m_autoSaveInterval = qs->value(autoSaveIntervalKey).toInt();
}
if (qs->contains(autoSuspendEnabledKey)) {
d->m_autoSuspendEnabled = qs->value(autoSuspendEnabledKey).toBool();
d->m_autoSuspendMinDocumentCount = qs->value(autoSuspendMinDocumentCountKey).toInt();
}
updateAutoSave();
}