diff options
author | Wang Chuan <ouchuanm@outlook.com> | 2020-05-04 11:09:13 +0800 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2021-01-11 21:39:36 +0000 |
commit | c57b803e26c3f98b4f22bcc0f1029fb963e92b0e (patch) | |
tree | 46a9099fd4bce97ebb4ed64e6e2005f8240e94b1 /src/quick/items | |
parent | 4461cd02d1fdc7f0a7062c49f08657a1c4a3336b (diff) |
QQuickLoader: prevent clearing initial properties after active = true
After commit b6d88c73, we implement the method [disposeInitialPropertyValues]
and clear the cache of initial properties actually. Since we also call this
method after source loaded, it will cause loss of initial properties after
active = true.
(cherry-picked from commit a135f3d6c3202b37eda0f1e94292f795f9e575ca)
Fixes: QTBUG-83895
Change-Id: Iaa500fff14dcaad79a9e68dcbac9f65fa8720456
Reviewed-by: Robert Griebl <robert.griebl@qt.io>
Diffstat (limited to 'src/quick/items')
-rw-r--r-- | src/quick/items/qquickloader.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/quick/items/qquickloader.cpp b/src/quick/items/qquickloader.cpp index 8cd63a4236..cb4f79a3c2 100644 --- a/src/quick/items/qquickloader.cpp +++ b/src/quick/items/qquickloader.cpp @@ -718,7 +718,6 @@ void QQuickLoaderPrivate::incubatorStateChanged(QQmlIncubator::Status status) emit q->progressChanged(); if (status == QQmlIncubator::Ready) emit q->loaded(); - disposeInitialPropertyValues(); // cleanup } void QQuickLoaderPrivate::_q_sourceLoaded() |