Commit be613a40 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

TextEditor: Remove redundant null validation

Change-Id: I286b324003554bce3607e685088d4d8406bc6892
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent cb406bfc
......@@ -159,7 +159,7 @@ void PlainTextEditorWidget::configure(const MimeType &mimeType)
setCodeFoldingSupported(true);
}
} else if (baseTextDocument()) {
} else {
const QString &fileName = baseTextDocument()->filePath();
if (TextEditorSettings::highlighterSettings().isIgnoredFilePattern(fileName))
m_isMissingSyntaxDefinition = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment