summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/plaintexteditor.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2014-01-15 10:32:39 +0100
committerEike Ziller <eike.ziller@digia.com>2014-01-15 14:05:58 +0100
commit6e666abc8e4bfd1796c1888a74fc1476a74cd2ea (patch)
treed2a664d3247c4c10a2229288f562834e67b03f01 /src/plugins/texteditor/plaintexteditor.cpp
parenta1006d107f9453e52aaf4a9f097f131981d3b6e5 (diff)
downloadqt-creator-6e666abc8e4bfd1796c1888a74fc1476a74cd2ea.tar.gz
PlainTextEditor: only configure when the file path changes
It was also configuring whenever the modified state changed. Then it also doesn't seem to be necessary to queue the connection. Change-Id: I4935afbfef2e08c76f10c801281e2cc7796ac047 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Diffstat (limited to 'src/plugins/texteditor/plaintexteditor.cpp')
-rw-r--r--src/plugins/texteditor/plaintexteditor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/texteditor/plaintexteditor.cpp b/src/plugins/texteditor/plaintexteditor.cpp
index 4ffc4ec08d..2bb532df12 100644
--- a/src/plugins/texteditor/plaintexteditor.cpp
+++ b/src/plugins/texteditor/plaintexteditor.cpp
@@ -87,8 +87,8 @@ void PlainTextEditorWidget::ctor()
m_commentDefinition.clearCommentStyles();
- // If configure() is called immediately the whole document is considered modified
- connect(baseTextDocument(), SIGNAL(changed()), this, SLOT(configure()), Qt::QueuedConnection);
+ connect(baseTextDocument(), SIGNAL(filePathChanged(QString,QString)),
+ this, SLOT(configure()));
connect(Manager::instance(), SIGNAL(mimeTypesRegistered()), this, SLOT(configure()));
}