From 470a54992f76ae8d9e827c38b7fb9996e75f61a0 Mon Sep 17 00:00:00 2001
From: Leandro Melo <leandro.melo@nokia.com>
Date: Fri, 6 Aug 2010 09:50:22 +0200
Subject: [PATCH] Generic highlighter: Once there is an id the definition is
 considered found.

---
 src/plugins/texteditor/plaintexteditor.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/plugins/texteditor/plaintexteditor.cpp b/src/plugins/texteditor/plaintexteditor.cpp
index 60dfb5dfb16..58441bf02b6 100644
--- a/src/plugins/texteditor/plaintexteditor.cpp
+++ b/src/plugins/texteditor/plaintexteditor.cpp
@@ -186,6 +186,7 @@ void PlainTextEditor::configure(const Core::MimeType &mimeType)
     }
 
     if (!definitionId.isEmpty()) {
+        m_isMissingSyntaxDefinition = false;
         const QSharedPointer<HighlightDefinition> &definition =
             Manager::instance()->definition(definitionId);
         if (!definition.isNull()) {
@@ -198,8 +199,6 @@ void PlainTextEditor::configure(const Core::MimeType &mimeType)
 
             setCodeFoldingSupported(true);
             setCodeFoldingVisible(true);
-
-            m_isMissingSyntaxDefinition = false;
         }
     } else if (file()) {
         const QString &fileName = file()->fileName();
-- 
GitLab