forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user