summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/plaintexteditor.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2013-08-14 20:56:18 +0300
committerDavid Schulz <david.schulz@digia.com>2013-10-16 09:21:16 +0200
commitd6f21bf549ad3fcb458a01fe1a7322b562cfb1fb (patch)
tree1309230f922d378cebe5d1e2024a15a89eba139e /src/plugins/texteditor/plaintexteditor.cpp
parenta5c970bea27638b69d118a241439fbf31a003e91 (diff)
downloadqt-creator-d6f21bf549ad3fcb458a01fe1a7322b562cfb1fb.tar.gz
Fix document appearing as it is all changed on open
Broken by 113c5600c909791ddfea3d424a41d982dcdda6b7 Apparently SyntaxHighlighter::rehighlight is called too early Task-number: QTCREATORBUG-10026 Change-Id: Ifa76c156b5b84b79c869d2de1a0ad69c13ac6b48 Reviewed-by: David Schulz <david.schulz@digia.com>
Diffstat (limited to 'src/plugins/texteditor/plaintexteditor.cpp')
-rw-r--r--src/plugins/texteditor/plaintexteditor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/texteditor/plaintexteditor.cpp b/src/plugins/texteditor/plaintexteditor.cpp
index 1e99aa448e..c664cdbafa 100644
--- a/src/plugins/texteditor/plaintexteditor.cpp
+++ b/src/plugins/texteditor/plaintexteditor.cpp
@@ -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()));
}