forked from qt-creator/qt-creator
Help: Use settings->setValueWithDefault
Task-number: QTCREATORBUG-24762 Change-Id: Ia2f7c0834758097814dd6234a6f4fd656a3821b0 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user