forked from qt-creator/qt-creator
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 <qt_sanity_bot@ovi.com> Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -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*)),
|
||||
|
||||
Reference in New Issue
Block a user