Skip to content
Snippets Groups Projects
Commit 39dd9d07 authored by David Kaspar's avatar David Kaspar
Browse files

Qnx: Fixing BarDescriptorEditor to open as unmodifed


Task-number: QTCREATORBUG-10228

Change-Id: I0660619b3279ff4889091c19622a98771c213a3e
Reviewed-by: default avatarDavid Kaspar <dkaspar@blackberry.com>
Reviewed-by: default avatarTobias Nätterlund <tobias.naetterlund@kdab.com>
Reviewed-by: default avatarMehdi Fekari <mfekari@blackberry.com>
Reviewed-by: default avatarNicolas Arnaud-Cormos <nicolas@kdab.com>
parent f17d9f01
No related branches found
No related tags found
No related merge requests found
...@@ -207,8 +207,13 @@ BarDescriptorEditorAssetsWidget *BarDescriptorEditorWidget::assetsWidget() const ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment