From d661ab09ce5b0ba4265024a2b4538d4f84241d08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 19 Aug 2019 12:59:44 +0200 Subject: [PATCH] GUI: Fixed suppressions when reanalyzing files --- gui/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index b8ad23246..0a06aa35f 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -490,6 +490,7 @@ void MainWindow::doAnalyzeFiles(const QStringList &files, const bool checkLibrar mThread->setFiles(fileNames); if (mProjectFile && !checkConfiguration) mThread->setAddonsAndTools(mProjectFile->getAddonsAndTools(), mSettings->value(SETTINGS_MISRA_FILE).toString()); + mThread->setSuppressions(mProjectFile ? mProjectFile->getSuppressions() : QList()); QDir inf(mCurrentDirectory); const QString checkPath = inf.canonicalPath(); setPath(SETTINGS_LAST_CHECK_PATH, checkPath);