Skip to content
Snippets Groups Projects
Commit e1935a0e authored by con's avatar con
Browse files

Remove wrong assertion.

parent 21e1db4b
No related merge requests found
...@@ -242,8 +242,6 @@ void DesignMode::currentEditorChanged(Core::IEditor *editor) ...@@ -242,8 +242,6 @@ void DesignMode::currentEditorChanged(Core::IEditor *editor)
setEnabled(false); setEnabled(false);
d->m_currentEditor = QWeakPointer<Core::IEditor>(); d->m_currentEditor = QWeakPointer<Core::IEditor>();
emit actionsUpdated(d->m_currentEditor.data()); emit actionsUpdated(d->m_currentEditor.data());
QTC_ASSERT(core->modeManager()->currentMode() != this, core->modeManager()->activateMode(Constants::MODE_EDIT));
} else { } else {
d->m_currentEditor = QWeakPointer<Core::IEditor>(editor); d->m_currentEditor = QWeakPointer<Core::IEditor>(editor);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment