forked from qt-creator/qt-creator
Editor: fix to always call forceReadOnly before activation
Move the call to force readOnly to before the activation for the editors that had it after their activation call. Not having signals, currently dynamic changes of the editor read only state are not really supported, and on windows some actions remained activated. Task-number: QTCREATORBUG-4774 Change-Id: I09a84c6e558ddf61aeedb928f8688f6ed65e89c0 Reviewed-on: http://codereview.qt.nokia.com/20 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
0262795c93
commit
e54a959ef1
@@ -494,8 +494,8 @@ VCSBase::VCSBaseEditorWidget *VCSBaseClient::createVCSEditor(const QString &kind
|
||||
baseEditor->setCodec(VCSBase::VCSBaseEditorWidget::getCodec(source));
|
||||
}
|
||||
|
||||
d->m_core->editorManager()->activateEditor(outputEditor, Core::EditorManager::ModeSwitch);
|
||||
baseEditor->setForceReadOnly(true);
|
||||
d->m_core->editorManager()->activateEditor(outputEditor, Core::EditorManager::ModeSwitch);
|
||||
return baseEditor;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user