Fixed resource file issue with Qt Designer and switching to edit mode while debugging

This commit is contained in:
Lasse Holmstedt
2010-02-26 14:28:26 +01:00
parent ec5952c5f6
commit e952d30914
7 changed files with 56 additions and 28 deletions

View File

@@ -186,10 +186,9 @@ void DesignMode::currentEditorChanged(Core::IEditor *editor)
if (!mimeEditorAvailable)
setEnabled(false);
if ((!mimeEditorAvailable && core->modeManager()->currentMode() == this)
|| !modeActivated)
if (!mimeEditorAvailable && core->modeManager()->currentMode() == this)
{
// switch back to edit mode
// switch back to edit mode - we don't want to be here
core->modeManager()->activateMode(Constants::MODE_EDIT);
}