From a62fedc64115f4c955d8f671714904d4a137bf63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 9 Jun 2023 17:15:48 +0200 Subject: [PATCH] GUI: Do not use --rule-texts in cppcheck premium (#5136) --- gui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 1f6add593..1aa397144 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -1002,7 +1002,7 @@ Settings MainWindow::getCppcheckSettings() if (!pythonCmd.isEmpty()) json += ", \"python\":\"" + pythonCmd + "\""; const QString misraFile = fromNativePath(mSettings->value(SETTINGS_MISRA_FILE).toString()); - if (addon == "misra" && !misraFile.isEmpty()) { + if (!isCppcheckPremium() && addon == "misra" && !misraFile.isEmpty()) { QString arg; if (misraFile.endsWith(".pdf", Qt::CaseInsensitive)) arg = "--misra-pdf=" + misraFile;