aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/vcsbase/vcsbaseplugin.cpp
diff options
context:
space:
mode:
authorTobias Hunger <[email protected]>2011-09-13 15:05:50 +0000
committerTobias Hunger <[email protected]>2011-09-14 10:53:20 +0200
commitc5c94206ba5a903215771bd6bf68c0919380e5c7 (patch)
treed17c6ca9d1a63045de946cf86b7db6ea9e14c4fa /src/plugins/vcsbase/vcsbaseplugin.cpp
parentd8c7dc8c52ba8089e2de109ae59c0d80497cb2ef (diff)
VCS: Make initialization of a repo trigger updateActions
Make initialization/cloning of a repo trigger an updateActions. This is needed to e.g. enable git actions after a git repo is created. Reviewed-by: Hugues Delorme Change-Id: Ia8513a216e584fe8e512fdd5d6215aa96c075f3f Reviewed-on: http://codereview.qt-project.org/4878 Reviewed-by: Qt Sanity Bot <[email protected]> Reviewed-by: Tobias Hunger <[email protected]>
Diffstat (limited to 'src/plugins/vcsbase/vcsbaseplugin.cpp')
-rw-r--r--src/plugins/vcsbase/vcsbaseplugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/vcsbase/vcsbaseplugin.cpp b/src/plugins/vcsbase/vcsbaseplugin.cpp
index 01a2cbadf9f..a2207342653 100644
--- a/src/plugins/vcsbase/vcsbaseplugin.cpp
+++ b/src/plugins/vcsbase/vcsbaseplugin.cpp
@@ -209,6 +209,8 @@ StateListener::StateListener(QObject *parent) :
this, SLOT(slotStateChanged()));
connect(core->editorManager()->instance(), SIGNAL(currentEditorStateChanged(Core::IEditor*)),
this, SLOT(slotStateChanged()));
+ connect(core->vcsManager(), SIGNAL(repositoryChanged(QString)),
+ this, SLOT(slotStateChanged()));
if (ProjectExplorer::ProjectExplorerPlugin *pe = ProjectExplorer::ProjectExplorerPlugin::instance())
connect(pe, SIGNAL(currentProjectChanged(ProjectExplorer::Project*)),