Help: Use settings->setValueWithDefault

Task-number: QTCREATORBUG-24762
Change-Id: Ia2f7c0834758097814dd6234a6f4fd656a3821b0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Eike Ziller
2020-12-14 15:46:04 +01:00
parent 070afbbe4a
commit f17bf14533
3 changed files with 29 additions and 16 deletions

View File

@@ -359,8 +359,8 @@ void HelpPluginPrivate::saveExternalWindowSettings()
if (!m_externalWindow)
return;
m_externalWindowState = m_externalWindow->geometry();
QSettings *settings = ICore::settings();
settings->setValue(kExternalWindowStateKey, QVariant::fromValue(m_externalWindowState));
ICore::settings()->setValueWithDefault(kExternalWindowStateKey,
QVariant::fromValue(m_externalWindowState));
}
HelpWidget *HelpPluginPrivate::createHelpWidget(const Context &context, HelpWidget::WidgetStyle style)