Commit 522cf96b authored by mae's avatar mae
Browse files

activate diff editor after creating it

parent a318ac8d
...@@ -169,7 +169,6 @@ VCSBase::VCSBaseEditor ...@@ -169,7 +169,6 @@ VCSBase::VCSBaseEditor
outputEditor->createNew(m_msgWait); outputEditor->createNew(m_msgWait);
rc = VCSBase::VCSBaseEditor::getVcsBaseEditor(outputEditor); rc = VCSBase::VCSBaseEditor::getVcsBaseEditor(outputEditor);
QTC_ASSERT(rc, return 0); QTC_ASSERT(rc, return 0);
m_core->editorManager()->activateEditor(outputEditor);
} else { } else {
// Create new, set wait message, set up with source and codec // Create new, set wait message, set up with source and codec
outputEditor = m_core->editorManager()->newFile(kind, &title, m_msgWait); outputEditor = m_core->editorManager()->newFile(kind, &title, m_msgWait);
...@@ -180,6 +179,7 @@ VCSBase::VCSBaseEditor ...@@ -180,6 +179,7 @@ VCSBase::VCSBaseEditor
if (setSourceCodec) if (setSourceCodec)
rc->setCodec(VCSBase::VCSBaseEditor::getCodec(source)); rc->setCodec(VCSBase::VCSBaseEditor::getCodec(source));
} }
m_core->editorManager()->activateEditor(outputEditor);
return rc; return rc;
} }
......
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