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>
This commit is contained in:
Eike Ziller
2014-01-15 10:32:39 +01:00
parent a1006d107f
commit 6e666abc8e

View File

@@ -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()));
}