Commit 158ef19c authored by Tobias Hunger's avatar Tobias Hunger

VcsBase: Remove check for existence of ProjectExplorer

The plugin depends on the ProjectExplorer to be there, so there
is no need to explicitly check for it.

Change-Id: I151eb6f4613e3f55cb2376f73b44ada82b320972
Reviewed-by: default avatarTobias Hunger <>
parent 34711cdc
......@@ -160,12 +160,6 @@ static QFileInfoList findProjectFiles(const QDir &projectDir, QString *errorMess
QString BaseCheckoutWizard::openProject(const QString &path, QString *errorMessage)
ProjectExplorer::ProjectExplorerPlugin *pe = ProjectExplorer::ProjectExplorerPlugin::instance();
if (!pe) {
*errorMessage = tr("The Project Explorer is not available.");
return QString();
// Search the directory for project files
const QDir dir(path);
if (!dir.exists()) {
......@@ -178,7 +172,7 @@ QString BaseCheckoutWizard::openProject(const QString &path, QString *errorMessa
return QString();
// Open. Do not use a busy cursor here as additional wizards might pop up
const QString projectFile = projectFiles.front().absoluteFilePath();
if (!pe->openProject(projectFile, errorMessage))
if (!ProjectExplorer::ProjectExplorerPlugin::instance()->openProject(projectFile, errorMessage))
return QString();
return projectFile;
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