Qnx: Fixing BarDescriptorEditor to open as unmodifed

Task-number: QTCREATORBUG-10228

Change-Id: I0660619b3279ff4889091c19622a98771c213a3e
Reviewed-by: David Kaspar <dkaspar@blackberry.com>
Reviewed-by: Tobias Nätterlund <tobias.naetterlund@kdab.com>
Reviewed-by: Mehdi Fekari <mfekari@blackberry.com>
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
This commit is contained in:
David Kaspar
2013-09-26 14:09:48 +02:00
parent f17d9f01dc
commit 39dd9d07c6

View File

@@ -207,8 +207,13 @@ BarDescriptorEditorAssetsWidget *BarDescriptorEditorWidget::assetsWidget() const
void BarDescriptorEditorWidget::setFilePath(const QString &filePath) void BarDescriptorEditorWidget::setFilePath(const QString &filePath)
{ {
Core::IDocument *doc = m_xmlSourceWidget->editorDocument(); Core::IDocument *doc = m_xmlSourceWidget->editorDocument();
if (doc) if (doc) {
doc->setFilePath(filePath); 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 QString BarDescriptorEditorWidget::xmlSource() const