From a47b424e4f89a6d212624cf2e07e1674cc4029c0 Mon Sep 17 00:00:00 2001
From: Christiaan Janssen <christiaan.janssen@nokia.com>
Date: Fri, 9 Apr 2010 16:00:55 +0200
Subject: [PATCH] QmlInspector: corrected showing of items' id when added to
 the watch list

---
 src/plugins/qmlinspector/components/watchtable.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/qmlinspector/components/watchtable.cpp b/src/plugins/qmlinspector/components/watchtable.cpp
index 4712f901998..fea56ebc45c 100644
--- a/src/plugins/qmlinspector/components/watchtable.cpp
+++ b/src/plugins/qmlinspector/components/watchtable.cpp
@@ -219,7 +219,7 @@ void WatchTableModel::togglePropertyWatch(const QDeclarativeDebugObjectReference
         delete watch;
         watch = 0;
     } else {
-        QString desc = (object.name().isEmpty() ? QLatin1String("<") + object.className() + QLatin1String(">") : object.name())
+        QString desc = (object.idString().isEmpty() ? QLatin1String("<") + object.className() + QLatin1String(">") : object.idString())
                        + QLatin1String(".") + property.name();
 
         addWatch(watch, desc);
-- 
GitLab