Commit 6b123c98 authored by dt's avatar dt
Browse files

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
parent 4995d26e
......@@ -2112,14 +2112,7 @@ void ProjectExplorerPlugin::openRecentProject()
return;
QString fileName = a->data().toString();
if (!fileName.isEmpty()) {
if (!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();
}
openProject(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