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