forked from qt-creator/qt-creator
Fix document appearing as it is all changed on open
Broken by 113c5600c9
Apparently SyntaxHighlighter::rehighlight is called too early
Task-number: QTCREATORBUG-10026
Change-Id: Ifa76c156b5b84b79c869d2de1a0ad69c13ac6b48
Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
committed by
David Schulz
parent
a5c970bea2
commit
d6f21bf549
@@ -70,7 +70,8 @@ PlainTextEditorWidget::PlainTextEditorWidget(QWidget *parent)
|
||||
|
||||
m_commentDefinition.clearCommentStyles();
|
||||
|
||||
connect(editorDocument(), SIGNAL(changed()), this, SLOT(configure()));
|
||||
// If configure() is called immediately the whole document is considered modified
|
||||
connect(editorDocument(), SIGNAL(changed()), this, SLOT(configure()), Qt::QueuedConnection);
|
||||
connect(Manager::instance(), SIGNAL(mimeTypesRegistered()), this, SLOT(configure()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user