forked from qt-creator/qt-creator
Core: Save less settings
Try to not save settings that weren't changed from their default, and make it possible for defaults to change in the future. Task-number: QTCREATORBUG-24762 Change-Id: If469b72573791bc92ed535edf00271ef09b55386 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -755,7 +755,9 @@ bool SettingsDialog::execDialog()
|
||||
exec();
|
||||
m_running = false;
|
||||
m_instance = nullptr;
|
||||
ICore::settings()->setValue(kPreferenceDialogSize, size());
|
||||
ICore::settings()->setValueWithDefault(kPreferenceDialogSize,
|
||||
size(),
|
||||
QSize(kInitialWidth, kInitialHeight));
|
||||
// make sure that the current "single" instance is deleted
|
||||
// we can't delete right away, since we still access the m_applied member
|
||||
deleteLater();
|
||||
|
||||
Reference in New Issue
Block a user