forked from qt-creator/qt-creator
activate diff editor after creating it
This commit is contained in:
@@ -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
|
|||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user