summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpptoolseditorsupport.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-02-11 14:42:23 +0100
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-02-11 15:03:50 +0100
commitdd54cc6a7a91a2be18de8b8a6e516d81c84f910d (patch)
tree7ffbcf748c5bc296f13eebe25336c8126b8b283a /src/plugins/cpptools/cpptoolseditorsupport.cpp
parentf3c2bbaabe052f2fa02dae93c62bef093a68a866 (diff)
downloadqt-creator-dd54cc6a7a91a2be18de8b8a6e516d81c84f910d.tar.gz
Don't remove syntax errors on each document change
Especially when several error markers exist, the flashing this causes while editing isn't really nice. Reviewed-by: Roberto Raggi
Diffstat (limited to 'src/plugins/cpptools/cpptoolseditorsupport.cpp')
-rw-r--r--src/plugins/cpptools/cpptoolseditorsupport.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/plugins/cpptools/cpptoolseditorsupport.cpp b/src/plugins/cpptools/cpptoolseditorsupport.cpp
index ab6fe3532c..a1688e7ca0 100644
--- a/src/plugins/cpptools/cpptoolseditorsupport.cpp
+++ b/src/plugins/cpptools/cpptoolseditorsupport.cpp
@@ -91,10 +91,6 @@ void CppEditorSupport::updateDocument()
const QList<QTextEdit::ExtraSelection> selections =
edit->extraSelections(TextEditor::BaseTextEditor::CodeWarningsSelection);
- if (! selections.isEmpty())
- edit->setExtraSelections(TextEditor::BaseTextEditor::CodeWarningsSelection,
- QList<QTextEdit::ExtraSelection>());
-
_modelManager->stopEditorSelectionsUpdate();
}