summaryrefslogtreecommitdiff
path: root/src/plugins/git/gitclient.cpp
diff options
context:
space:
mode:
authorFawzi Mohamed <fawzi.mohamed@nokia.com>2011-05-19 15:39:22 +0200
committerTobias Hunger <tobias.hunger@nokia.com>2011-05-19 15:53:16 +0200
commite54a959ef12045228c2d216b3583968063c895b8 (patch)
tree8c00a66054fda352739d91cc2c846cdc91990fdf /src/plugins/git/gitclient.cpp
parent0262795c935045368247167dea94076e23eb2229 (diff)
downloadqt-creator-e54a959ef12045228c2d216b3583968063c895b8.tar.gz
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>
Diffstat (limited to 'src/plugins/git/gitclient.cpp')
-rw-r--r--src/plugins/git/gitclient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp
index 0437216b64..96be02ea59 100644
--- a/src/plugins/git/gitclient.cpp
+++ b/src/plugins/git/gitclient.cpp
@@ -489,8 +489,8 @@ VCSBase::VCSBaseEditorWidget *GitClient::createVCSEditor(const QString &id,
if (setSourceCodec)
rc->setCodec(VCSBase::VCSBaseEditorWidget::getCodec(source));
- m_core->editorManager()->activateEditor(outputEditor, Core::EditorManager::ModeSwitch);
rc->setForceReadOnly(true);
+ m_core->editorManager()->activateEditor(outputEditor, Core::EditorManager::ModeSwitch);
if (configWidget)
rc->setConfigurationWidget(configWidget);