Debugger: Do not lookup types when accessing the type name

Return the typeId instead of triggering a type lookup when accessing the
type name and no TypeData is available.

Change-Id: I4d46d5356d38184d73427e5a65c3986d30520cf9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2017-03-07 14:44:04 +01:00
parent d6df4492d0
commit 4f91cb3d0c
+1 -1
View File
@@ -3261,7 +3261,7 @@ class DumperBase:
@property
def name(self):
tdata = self.typeData()
tdata = self.dumper.typeData.get(self.typeId)
if tdata is None:
return self.typeId
return tdata.name