Core: Fix that core settings like shortcuts were only saved at shutdown

Save them also whenever a settings save is requested, which e.g. also
happens when closing the options dialog.

Change-Id: Ic20f1007381a4d0a8157f17fd24c0d8ea24907ee
Task-number: QTCREATORBUG-16576
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Eike Ziller
2016-09-06 09:06:56 +02:00
parent add34759fa
commit b554829fd8
3 changed files with 19 additions and 8 deletions

View File

@@ -596,6 +596,7 @@ QString ICore::systemInformation()
void ICore::saveSettings()
{
emit m_instance->saveSettingsRequested();
m_mainwindow->saveSettings();
ICore::settings(QSettings::SystemScope)->sync();
ICore::settings(QSettings::UserScope)->sync();