Remove wrong assertion.

This commit is contained in:
con
2010-03-31 10:08:58 +02:00
parent 21e1db4b5b
commit e1935a0edf

View File

@@ -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);