From 02fbf155570547cf4b17cd19118504f92c5690f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 18 Jun 2013 14:14:33 +0200 Subject: [PATCH] Fixed #4855 (GUI: The checking of the file will be interrupted because there are too many #ifdef configurations.) --- gui/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index cac15b789..408127ba6 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -529,6 +529,10 @@ Settings MainWindow::GetCppcheckSettings() result.userDefines += ";"; result.userDefines += define.toStdString(); } + + // Only check the given -D configuration + if (!defines.isEmpty()) + result._maxConfigs = 1; } // Include directories (and files) are searched in listed order.