From 63c5cee82fea256ac2c09674cf493c20b37f478a Mon Sep 17 00:00:00 2001 From: dt <qtc-committer@nokia.com> Date: Mon, 6 Sep 2010 17:03:11 +0200 Subject: [PATCH] Uhm, compile --- src/plugins/coreplugin/modemanager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/coreplugin/modemanager.cpp b/src/plugins/coreplugin/modemanager.cpp index 80e77e8d5f2..98c4222c8e5 100644 --- a/src/plugins/coreplugin/modemanager.cpp +++ b/src/plugins/coreplugin/modemanager.cpp @@ -73,6 +73,7 @@ struct ModeManagerPrivate QSignalMapper *m_signalMapper; Context m_addedContexts; int m_oldCurrent; + bool m_switchedToMode; }; ModeManager *ModeManagerPrivate::m_instance = 0; @@ -152,7 +153,7 @@ IMode *ModeManager::mode(const QString &id) const void ModeManager::activateMode(const QString &id) { - m_switchedToMode = true; + d->m_switchedToMode = true; const int index = indexOf(id); if (index >= 0) d->m_modeStack->setCurrentIndex(index); @@ -313,7 +314,7 @@ void ModeManager::setFocusToCurrentMode() void ModeManager::switchToDefaultMode() { - if (!m_switchedToMode) + if (!d->m_switchedToMode) d->m_modeStack->setCurrentIndex(0); } -- GitLab