From 5fc8f13fd636365956a7b591e9780b9b08137834 Mon Sep 17 00:00:00 2001 From: Martin Ettl Date: Wed, 7 Mar 2018 00:18:47 +0100 Subject: [PATCH] GUI: Expand found results when using the scratchpad. --- gui/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 114358275..f9fe33d98 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -547,6 +547,10 @@ void MainWindow::analyzeCode(const QString& code, const QString& filename) mUI.mResults->checkingStarted(1); cppcheck.check(filename.toStdString(), code.toStdString()); analysisDone(); + + // Expand results + if(mUI.mResults->hasVisibleResults()) + mUI.mResults->expandAllResults(); } QStringList MainWindow::selectFilesToAnalyze(QFileDialog::FileMode mode)