GUI: Fixed suppressions when reanalyzing files
This commit is contained in:
parent
1f747d0b14
commit
d661ab09ce
|
@ -490,6 +490,7 @@ void MainWindow::doAnalyzeFiles(const QStringList &files, const bool checkLibrar
|
||||||
mThread->setFiles(fileNames);
|
mThread->setFiles(fileNames);
|
||||||
if (mProjectFile && !checkConfiguration)
|
if (mProjectFile && !checkConfiguration)
|
||||||
mThread->setAddonsAndTools(mProjectFile->getAddonsAndTools(), mSettings->value(SETTINGS_MISRA_FILE).toString());
|
mThread->setAddonsAndTools(mProjectFile->getAddonsAndTools(), mSettings->value(SETTINGS_MISRA_FILE).toString());
|
||||||
|
mThread->setSuppressions(mProjectFile ? mProjectFile->getSuppressions() : QList<Suppressions::Suppression>());
|
||||||
QDir inf(mCurrentDirectory);
|
QDir inf(mCurrentDirectory);
|
||||||
const QString checkPath = inf.canonicalPath();
|
const QString checkPath = inf.canonicalPath();
|
||||||
setPath(SETTINGS_LAST_CHECK_PATH, checkPath);
|
setPath(SETTINGS_LAST_CHECK_PATH, checkPath);
|
||||||
|
|
Loading…
Reference in New Issue