|
40 | 40 | #include "projectfile.h" |
41 | 41 | #include "projectfiledialog.h" |
42 | 42 | #include "report.h" |
| 43 | +#include "resultstree.h" |
43 | 44 | #include "resultsview.h" |
44 | 45 | #include "scratchpad.h" |
45 | 46 | #include "settings.h" |
@@ -588,6 +589,7 @@ void MainWindow::doAnalyzeProject(ImportProject p, const bool checkLibrary, cons |
588 | 589 | } |
589 | 590 |
|
590 | 591 | mUI->mResults->clear(true); |
| 592 | + mUI->mResults->setResultsSource(ResultsTree::ResultsSource::Analysis); |
591 | 593 | mThread->clearFiles(); |
592 | 594 |
|
593 | 595 | mUI->mResults->checkingStarted(p.fileSettings.size()); |
@@ -651,6 +653,7 @@ void MainWindow::doAnalyzeFiles(const QStringList &files, const bool checkLibrar |
651 | 653 | QStringList fileNames = pathList.getFileList(); |
652 | 654 |
|
653 | 655 | mUI->mResults->clear(true); |
| 656 | + mUI->mResults->setResultsSource(ResultsTree::ResultsSource::Analysis); |
654 | 657 | mThread->clearFiles(); |
655 | 658 |
|
656 | 659 | if (fileNames.isEmpty()) { |
@@ -1486,6 +1489,7 @@ void MainWindow::loadResults(const QString &selectedFile) |
1486 | 1489 | closeProjectFile(); |
1487 | 1490 | mIsLogfileLoaded = true; |
1488 | 1491 | mUI->mResults->clear(true); |
| 1492 | + mUI->mResults->setResultsSource(ResultsTree::ResultsSource::Log); |
1489 | 1493 | mUI->mActionReanalyzeModified->setEnabled(false); |
1490 | 1494 | mUI->mActionReanalyzeAll->setEnabled(false); |
1491 | 1495 | mUI->mResults->readErrorsXml(selectedFile); |
@@ -1830,6 +1834,7 @@ void MainWindow::loadProjectFile(const QString &filePath) |
1830 | 1834 | addProjectMRU(filePath); |
1831 | 1835 |
|
1832 | 1836 | mIsLogfileLoaded = false; |
| 1837 | + mUI->mResults->setResultsSource(ResultsTree::ResultsSource::Analysis); |
1833 | 1838 | mUI->mActionCloseProjectFile->setEnabled(true); |
1834 | 1839 | mUI->mActionEditProjectFile->setEnabled(true); |
1835 | 1840 | delete mProjectFile; |
|
0 commit comments