Commit f1ea0fac authored by Tobias Hunger's avatar Tobias Hunger
Browse files

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's avatarOrgad Shaneh <orgads@gmail.com>
parent 91d0739b
...@@ -455,9 +455,8 @@ bool ClearCasePlugin::initialize(const QStringList & /*arguments */, QString *er ...@@ -455,9 +455,8 @@ bool ClearCasePlugin::initialize(const QStringList & /*arguments */, QString *er
m_settings.fromSettings(ICore::settings()); m_settings.fromSettings(ICore::settings());
// update view name when changing active project // update view name when changing active project
if (ProjectExplorerPlugin *pe = ProjectExplorerPlugin::instance()) connect(ProjectExplorerPlugin::instance(), SIGNAL(currentProjectChanged(ProjectExplorer::Project*)),
connect(pe, SIGNAL(currentProjectChanged(ProjectExplorer::Project*)), this, SLOT(projectChanged(ProjectExplorer::Project*)));
this, SLOT(projectChanged(ProjectExplorer::Project*)));
addAutoReleasedObject(new SettingsPage); addAutoReleasedObject(new SettingsPage);
......
...@@ -213,9 +213,9 @@ StateListener::StateListener(QObject *parent) : ...@@ -213,9 +213,9 @@ StateListener::StateListener(QObject *parent) :
connect(Core::VcsManager::instance(), SIGNAL(repositoryChanged(QString)), connect(Core::VcsManager::instance(), SIGNAL(repositoryChanged(QString)),
this, SLOT(slotStateChanged())); this, SLOT(slotStateChanged()));
if (ProjectExplorer::ProjectExplorerPlugin *pe = ProjectExplorer::ProjectExplorerPlugin::instance()) connect(ProjectExplorer::ProjectExplorerPlugin::instance(),
connect(pe, SIGNAL(currentProjectChanged(ProjectExplorer::Project*)), SIGNAL(currentProjectChanged(ProjectExplorer::Project*)),
this, SLOT(slotStateChanged())); this, SLOT(slotStateChanged()));
} }
static inline QString displayNameOfEditor(const QString &fileName) static inline QString displayNameOfEditor(const QString &fileName)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment