forked from qt-creator/qt-creator
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:
@@ -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()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user