Commit d6f21bf5 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by David Schulz

Fix document appearing as it is all changed on open

Broken by 113c5600

Apparently SyntaxHighlighter::rehighlight is called too early

Task-number: QTCREATORBUG-10026
Change-Id: Ifa76c156b5b84b79c869d2de1a0ad69c13ac6b48
Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
parent a5c970be
......@@ -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()));
}
......
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