diff --git a/src/plugins/texteditor/plaintexteditor.cpp b/src/plugins/texteditor/plaintexteditor.cpp index 4ffc4ec08df..2bb532df12c 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())); }