Fixed #8977 (GUI : Inspecting Cppcheck results)

This commit is contained in:
Daniel Marjamäki 2019-08-23 21:27:17 +02:00
parent c8868adb20
commit cb119f5910
1 changed files with 6 additions and 2 deletions

View File

@ -1652,8 +1652,12 @@ void MainWindow::openRecentProject()
const QString project = action->data().toString();
QFileInfo inf(project);
if (inf.exists()) {
loadProjectFile(project);
loadLastResults();
if (inf.suffix() == "xml")
loadResults(project);
else {
loadProjectFile(project);
loadLastResults();
}
} else {
const QString text(tr("The project file\n\n%1\n\n could not be found!\n\n"
"Do you want to remove the file from the recently "