diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2018-09-24 11:09:26 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2018-09-24 09:21:16 +0000 |
commit | c907d95221f74e24ad305fa6ebf043d55dd93324 (patch) | |
tree | 132946c00a789ee2a4e391f2e24f8b388f0c4c65 | |
parent | 5a563e6a303a6d21f60090d14737cb443abf8d77 (diff) | |
download | qt-creator-c907d95221f74e24ad305fa6ebf043d55dd93324.tar.gz |
QmlDesigner: Do not store @NodeInstance data in persistent aux data
These values are typically quite arbitrary like the current
postion of the frame handle. There is no reason to safe this persistently.
Change-Id: I2b09edf4842d3ec9956ced3a6a72ea4101395fbd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
-rw-r--r-- | src/plugins/qmldesigner/designercore/model/rewriterview.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/designercore/model/rewriterview.cpp b/src/plugins/qmldesigner/designercore/model/rewriterview.cpp index 2fa2d6e8eb..5be415c3d5 100644 --- a/src/plugins/qmldesigner/designercore/model/rewriterview.cpp +++ b/src/plugins/qmldesigner/designercore/model/rewriterview.cpp @@ -489,6 +489,10 @@ QString RewriterView::auxiliaryDataAsQML() const keys.sort(); for (const QString &key : keys) { + + if (key.endsWith("@NodeInstance")) + continue; + const QVariant value = data.value(key.toUtf8()); QString strValue = value.toString(); if (static_cast<QMetaType::Type>(value.type()) == QMetaType::QString) |