From bf6dfa0db9c41f5a9f3d9f170f7517522ce8560b Mon Sep 17 00:00:00 2001 From: David Schulz Date: Wed, 6 Feb 2019 10:01:09 +0100 Subject: [PATCH] TextEditor: remove senseless function call updating the info bar only makes sense after trying to set a generic highlighter, otherwise the member capturing the information whether a highlight definition for the current file is available might be uninitialized. Change-Id: I5cce70ecf1df0ba34f43eeb01743c1fae729cc6b Reviewed-by: Christian Stenger --- src/plugins/texteditor/texteditor.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/plugins/texteditor/texteditor.cpp b/src/plugins/texteditor/texteditor.cpp index d8e994b749b..409fc6dc24d 100644 --- a/src/plugins/texteditor/texteditor.cpp +++ b/src/plugins/texteditor/texteditor.cpp @@ -8574,8 +8574,6 @@ void TextEditorWidget::setupGenericHighlighter() connect(textDocument(), &IDocument::filePathChanged, d, &TextEditorWidgetPrivate::reconfigure); - - updateEditorInfoBar(this); } //