Commit 6ba9ae66 authored by Daniel Molkentin's avatar Daniel Molkentin
Browse files

Be a good citizen, retrieve the settings from ICore::instance().

parent 6c3c839c
......@@ -34,6 +34,7 @@
#include "uniqueidmanager.h"
#include <coreplugin/coreconstants.h>
#include <coreplugin/icore.h>
#include <QtCore/QDebug>
#include <QtCore/QSettings>
......@@ -463,7 +464,7 @@ static const char *sequenceKey = "Keysequence";
void ActionManagerPrivate::initialize()
{
QSettings *settings = m_mainWnd->settings();
QSettings *settings = Core::ICore::instance()->settings();
const int shortcuts = settings->beginReadArray(QLatin1String(settingsGroup));
for (int i=0; i<shortcuts; ++i) {
settings->setArrayIndex(i);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment