diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-10-02 15:04:53 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-10-02 17:03:00 +0200 |
commit | ee9319f63c2e9d307bcda41669aaed9934d013ad (patch) | |
tree | 48a49afdd5269e4c2707e447fd7a0ec362e2c380 /src | |
parent | dae5bc672eb177ec858f035e0976e8ad93ca59b3 (diff) |
QQmlBind: Mark restoreMode as explicitly also when set to default value
Change-Id: I8aa36cbba95a64498b34c689086e45c115ce542b
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/qml/types/qqmlbind.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/types/qqmlbind.cpp b/src/qml/types/qqmlbind.cpp index 861243987f..9d305cd24c 100644 --- a/src/qml/types/qqmlbind.cpp +++ b/src/qml/types/qqmlbind.cpp @@ -382,10 +382,10 @@ QQmlBind::RestorationMode QQmlBind::restoreMode() const void QQmlBind::setRestoreMode(RestorationMode newMode) { Q_D(QQmlBind); + d->restoreModeExplicit = true; if (newMode != restoreMode()) { d->restoreValue = (newMode & RestoreValue); d->restoreBinding = (newMode & RestoreBinding); - d->restoreModeExplicit = true; emit restoreModeChanged(); } } |