Commit fc3a2324 authored by dt's avatar dt
Browse files

Ups, fix ordering of adding mode and switching to it

parent 5b1cebc9
......@@ -84,8 +84,8 @@ bool CorePlugin::initialize(const QStringList &arguments, QString *errorMessage)
if (success) {
EditorManager *editorManager = m_mainWindow->editorManager();
m_editMode = new EditMode(editorManager);
m_mainWindow->modeManager()->activateMode(m_editMode->id());
addObject(m_editMode);
m_mainWindow->modeManager()->activateMode(m_editMode->id());
m_designMode = new DesignMode(editorManager);
addObject(m_designMode);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment