diff options
author | Vladislav Tronko <innermous@gmail.com> | 2017-03-15 18:56:40 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2017-03-16 14:26:42 +0000 |
commit | c308ec7b736b1e105803845c2b15599bd1c0a7c6 (patch) | |
tree | e120db64a7449844424aa5039870e8e0c7c27cd3 | |
parent | 4033471aa91ac0cde52786c45c9e95b119197dfc (diff) | |
download | qt-creator-c308ec7b736b1e105803845c2b15599bd1c0a7c6.tar.gz |
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>
-rw-r--r-- | src/plugins/coreplugin/editormanager/editormanager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp index 1f103bdcd5..e4d005e3fe 100644 --- a/src/plugins/coreplugin/editormanager/editormanager.cpp +++ b/src/plugins/coreplugin/editormanager/editormanager.cpp @@ -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(); } |