aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/outlinefactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/texteditor/outlinefactory.cpp')
-rw-r--r--src/plugins/texteditor/outlinefactory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/texteditor/outlinefactory.cpp b/src/plugins/texteditor/outlinefactory.cpp
index 51b945c75c..74188d3b46 100644
--- a/src/plugins/texteditor/outlinefactory.cpp
+++ b/src/plugins/texteditor/outlinefactory.cpp
@@ -104,7 +104,7 @@ void OutlineWidgetStack::restoreSettings(int position)
{
m_position = position; // save it so that we can save/restore in updateCurrentEditor
- QSettings *settings = Core::ICore::instance()->settings();
+ QSettings *settings = Core::ICore::settings();
const bool toggleSync = settings->value(outLineKey(position), true).toBool();
toggleSyncButton()->setChecked(toggleSync);
@@ -117,7 +117,7 @@ void OutlineWidgetStack::saveSettings(int position)
{
Q_ASSERT(position == m_position);
- QSettings *settings = Core::ICore::instance()->settings();
+ QSettings *settings = Core::ICore::settings();
settings->setValue(outLineKey(position), toggleSyncButton()->isEnabled());
if (IOutlineWidget *outlineWidget = qobject_cast<IOutlineWidget*>(currentWidget())) {