Debugger: Fix display name of undereferenced pointers

This was a regression introduced by the migration of the WatchHandler
to the new tree models.

Task-number: QTCREATORBUG-14098
Change-Id: Id97c3927e7e19d501a8e7e01e12b28ffe2a66c68
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-03-05 14:29:58 +01:00
parent 7b3a185d41
commit 9e0a27207c

View File

@@ -685,7 +685,7 @@ QString WatchItem::displayName() const
return result;
if (d.iname.startsWith("return"))
result = WatchModel::tr("returned value");
else if (parentItem()->d.name == QLatin1String("*"))
else if (d.name == QLatin1String("*"))
result = QLatin1Char('*') + parentItem()->d.name;
else
result = watchModel()->removeNamespaces(d.name);