diff --git a/src/plugins/qnx/bardescriptoreditorwidget.cpp b/src/plugins/qnx/bardescriptoreditorwidget.cpp index 70fda5c2f4e..10b4447fd62 100644 --- a/src/plugins/qnx/bardescriptoreditorwidget.cpp +++ b/src/plugins/qnx/bardescriptoreditorwidget.cpp @@ -207,8 +207,13 @@ BarDescriptorEditorAssetsWidget *BarDescriptorEditorWidget::assetsWidget() const void BarDescriptorEditorWidget::setFilePath(const QString &filePath) { Core::IDocument *doc = m_xmlSourceWidget->editorDocument(); - if (doc) + if (doc) { doc->setFilePath(filePath); + // setFilePath() call leads to a textChanged() signal emitted + // and therefore having this editor-widget to become dirty + // therefore we have to explicitly unset the dirty flag + setDirty(false); + } } QString BarDescriptorEditorWidget::xmlSource() const