Debugger: Fix display of fields in returned value

Change-Id: Ic69ea19f4ea5b73f846d02765454f41cd3588133
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2015-06-12 00:55:22 +03:00
committed by Orgad Shaneh
parent ec3695be89
commit 7a6b1114f2

View File

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