From 2a313f45c9d919da49cf0cc32d51c24a19dc2a91 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 1 Jul 2024 13:54:56 +0200 Subject: [PATCH] CppEditor: Fix mistakenly inverted condition Introduced in f09a694cfcfac9a52deb57c2a95778f491c7897d Change-Id: I1983c9258ab3fc4f924580f759193d786bb24f2e Reviewed-by: David Schulz --- src/plugins/cppeditor/cppeditordocument.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/cppeditor/cppeditordocument.cpp b/src/plugins/cppeditor/cppeditordocument.cpp index 7b65a01fd3d..49d272eb725 100644 --- a/src/plugins/cppeditor/cppeditordocument.cpp +++ b/src/plugins/cppeditor/cppeditordocument.cpp @@ -310,7 +310,7 @@ void CppEditorDocument::setExtraPreprocessorDirectives(const QByteArray &directi void CppEditorDocument::setIfdefedOutBlocks(const QList &blocks) { - if (syntaxHighlighter() && syntaxHighlighter()->syntaxHighlighterUpToDate()) { + if (syntaxHighlighter() && !syntaxHighlighter()->syntaxHighlighterUpToDate()) { connect(syntaxHighlighter(), &SyntaxHighlighter::finished, this,