forked from qt-creator/qt-creator
Better error feedback on Open project
Task-Nr: QTCREATORBUG-5996 Task-Nr: QTCREATORBUG-5995 Change-Id: I4184a1c652cbfc93a788a8f9b67d936401e197b9 Reviewed-on: http://codereview.qt.nokia.com/4197 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -165,7 +165,10 @@ bool SessionFile::load(const QString &fileName)
|
||||
// Keep projects that failed to load in the session!
|
||||
m_failedProjects = fileList;
|
||||
if (!fileList.isEmpty()) {
|
||||
QList<Project *> projects = ProjectExplorerPlugin::instance()->openProjects(fileList);
|
||||
QString errors;
|
||||
QList<Project *> projects = ProjectExplorerPlugin::instance()->openProjects(fileList, &errors);
|
||||
if (!errors.isEmpty())
|
||||
QMessageBox::critical(Core::ICore::instance()->mainWindow(), tr("Failed to open project"), errors);
|
||||
foreach (Project *p, projects)
|
||||
m_failedProjects.removeAll(p->file()->fileName());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user