diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/cppeditor/cppquickfix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/cppquickfix.cpp b/src/plugins/cppeditor/cppquickfix.cpp index 4cb5f94435..5fa31660eb 100644 --- a/src/plugins/cppeditor/cppquickfix.cpp +++ b/src/plugins/cppeditor/cppquickfix.cpp @@ -443,7 +443,7 @@ public: // show when we're on the 'if' of an if statement int index = path.size() - 1; IfStatementAST *ifStatement = path.at(index)->asIfStatement(); - if (ifStatement && isCursorOn(ifStatement->if_token) + if (ifStatement && isCursorOn(ifStatement->if_token) && ifStatement->statement && ! ifStatement->statement->asCompoundStatement()) { _statement = ifStatement->statement; return index; |