aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick')
-rw-r--r--src/quick/items/qquickitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickitem.cpp b/src/quick/items/qquickitem.cpp
index 436db685e0..629c387d4f 100644
--- a/src/quick/items/qquickitem.cpp
+++ b/src/quick/items/qquickitem.cpp
@@ -9247,7 +9247,7 @@ QDebug operator<<(QDebug debug,
// Deferred properties will cause recursion when calling nameForObject
// before the component is completed, so guard against this situation.
- if (item->isComponentComplete()) {
+ if (item->isComponentComplete() && !QQmlData::wasDeleted(item)) {
if (QQmlContext *context = qmlContext(item)) {
const auto objectId = context->nameForObject(item);
if (!objectId.isEmpty())