From cb119f5910a1e006aa567377617dc0e37d182a8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 23 Aug 2019 21:27:17 +0200 Subject: [PATCH] Fixed #8977 (GUI : Inspecting Cppcheck results) --- gui/mainwindow.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 0a06aa35f..6f2644cc8 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -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 "