Fixed #8977 (GUI : Inspecting Cppcheck results)
This commit is contained in:
parent
c8868adb20
commit
cb119f5910
|
@ -1652,8 +1652,12 @@ void MainWindow::openRecentProject()
|
||||||
const QString project = action->data().toString();
|
const QString project = action->data().toString();
|
||||||
QFileInfo inf(project);
|
QFileInfo inf(project);
|
||||||
if (inf.exists()) {
|
if (inf.exists()) {
|
||||||
loadProjectFile(project);
|
if (inf.suffix() == "xml")
|
||||||
loadLastResults();
|
loadResults(project);
|
||||||
|
else {
|
||||||
|
loadProjectFile(project);
|
||||||
|
loadLastResults();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
const QString text(tr("The project file\n\n%1\n\n could not be found!\n\n"
|
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 "
|
"Do you want to remove the file from the recently "
|
||||||
|
|
Loading…
Reference in New Issue