aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/git/gitplugin.cpp
diff options
context:
space:
mode:
authorAndre Hartmann <[email protected]>2018-09-15 09:20:29 +0200
committerAndrĂ© Hartmann <[email protected]>2018-09-15 17:54:52 +0000
commitfc36a0b5bde0c4545d5a216901da90148a0317bd (patch)
treeb5b1664ccf63b7ddb9b18cc6df653ee2cb2be66a /src/plugins/git/gitplugin.cpp
parent758f9cfef758c521839f1554886b4ef81a2d1b05 (diff)
Git: Switch to edit mode when branch view is requested
The branch view is shown in the right side bar, which is not visible in debug mode, for example. Task-number: QTCREATORBUG-21088 Change-Id: If8fcab7a0b21d82534935bc555b79d1571d37633 Reviewed-by: Orgad Shaneh <[email protected]>
Diffstat (limited to 'src/plugins/git/gitplugin.cpp')
-rw-r--r--src/plugins/git/gitplugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp
index a24adabc74b..7ac5e13acbe 100644
--- a/src/plugins/git/gitplugin.cpp
+++ b/src/plugins/git/gitplugin.cpp
@@ -55,6 +55,7 @@
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/editormanager/ieditor.h>
#include <coreplugin/locator/commandlocator.h>
+#include <coreplugin/modemanager.h>
#include <coreplugin/navigationwidget.h>
#include <coreplugin/vcsmanager.h>
@@ -1309,6 +1310,7 @@ template <class NonModalDialog>
void GitPlugin::branchList()
{
+ ModeManager::activateMode(Core::Constants::MODE_EDIT);
Core::NavigationWidget::activateSubWidget(Constants::GIT_BRANCH_VIEW_ID, Core::Side::Right);
}