Open Recent Project: Do not show misleading error dialog

The return code of openProject() just indicates if a project was opened.
That is also false if the user cancels the open process.

Task-Nr: QTCREATORBUG-4173
This commit is contained in:
dt
2011-03-24 13:00:18 +01:00
parent 4995d26e60
commit 6b123c9869

View File

@@ -2112,14 +2112,7 @@ void ProjectExplorerPlugin::openRecentProject()
return; return;
QString fileName = a->data().toString(); QString fileName = a->data().toString();
if (!fileName.isEmpty()) { if (!fileName.isEmpty()) {
if (!openProject(fileName)) { openProject(fileName);
QMessageBox box(QMessageBox::Warning,
tr("Failed to open project"),
tr("Failed to open project:\n%1").arg(fileName),
QMessageBox::Ok,
Core::ICore::instance()->mainWindow());
box.exec();
}
} }
} }