From c308ec7b736b1e105803845c2b15599bd1c0a7c6 Mon Sep 17 00:00:00 2001 From: Vladislav Tronko Date: Wed, 15 Mar 2017 18:56:40 +0200 Subject: [PATCH] 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 --- src/plugins/coreplugin/editormanager/editormanager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp index 1f103bdcd53..e4d005e3fec 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(); }