GUI: Set Settings::libraries properly before analysis

This commit is contained in:
Daniel Marjamäki 2021-06-13 19:48:45 +02:00
parent 03445c01c1
commit 08626b9815
1 changed files with 1 additions and 0 deletions

View File

@ -888,6 +888,7 @@ Settings MainWindow::getCppcheckSettings()
const QStringList libraries = mProjectFile->getLibraries(); const QStringList libraries = mProjectFile->getLibraries();
foreach (QString library, libraries) { foreach (QString library, libraries) {
result.libraries.emplace_back(library.toStdString());
const QString filename = library + ".cfg"; const QString filename = library + ".cfg";
tryLoadLibrary(&result.library, filename); tryLoadLibrary(&result.library, filename);
} }