VCS: Do not check for existence of ProjectExplorer

All VCS plugins depend on the ProjectExplorer, so it is there.
No need to test.

Change-Id: Ie6ec210af0f63f1bdad0e4973743ae68f9279a5c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Tobias Hunger
2014-05-02 16:59:31 +02:00
parent 91d0739b97
commit f1ea0fac13
2 changed files with 5 additions and 6 deletions

View File

@@ -213,9 +213,9 @@ StateListener::StateListener(QObject *parent) :
connect(Core::VcsManager::instance(), SIGNAL(repositoryChanged(QString)),
this, SLOT(slotStateChanged()));
if (ProjectExplorer::ProjectExplorerPlugin *pe = ProjectExplorer::ProjectExplorerPlugin::instance())
connect(pe, SIGNAL(currentProjectChanged(ProjectExplorer::Project*)),
this, SLOT(slotStateChanged()));
connect(ProjectExplorer::ProjectExplorerPlugin::instance(),
SIGNAL(currentProjectChanged(ProjectExplorer::Project*)),
this, SLOT(slotStateChanged()));
}
static inline QString displayNameOfEditor(const QString &fileName)