diff --git a/src/plugins/coreplugin/designmode.cpp b/src/plugins/coreplugin/designmode.cpp index 37d48741d5cb3f563e41e7eff99c98e02658fc76..c8e83bc9195b3acddff1bbd7d12c2188ce6e702b 100644 --- a/src/plugins/coreplugin/designmode.cpp +++ b/src/plugins/coreplugin/designmode.cpp @@ -242,8 +242,6 @@ void DesignMode::currentEditorChanged(Core::IEditor *editor) setEnabled(false); d->m_currentEditor = QWeakPointer<Core::IEditor>(); emit actionsUpdated(d->m_currentEditor.data()); - - QTC_ASSERT(core->modeManager()->currentMode() != this, core->modeManager()->activateMode(Constants::MODE_EDIT)); } else { d->m_currentEditor = QWeakPointer<Core::IEditor>(editor);