Debugger: fix PyType::resolved function call

Change-Id: I9301d7875bec68ccde5ccd480b12c0dc86b082f1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2024-06-14 12:08:58 +02:00
parent 29ce8fa009
commit d30dda07a1

View File

@@ -124,7 +124,7 @@ class Dumper(DumperBase):
pass pass
if nativeValue.type().code() == TypeCode.Enum: if nativeValue.type().code() == TypeCode.Enum:
val.ldisplay = self.enumValue(nativeValue) val.ldisplay = self.enumValue(nativeValue)
elif not nativeValue.type().resolved and nativeValue.type().code() == TypeCode.Struct and not nativeValue.hasChildren(): elif not nativeValue.type().resolved() and nativeValue.type().code() == TypeCode.Struct and not nativeValue.hasChildren():
val.ldisplay = self.enumValue(nativeValue) val.ldisplay = self.enumValue(nativeValue)
val.isBaseClass = val.name == nativeValue.type().name() val.isBaseClass = val.name == nativeValue.type().name()
val.typeid = self.from_native_type(nativeValue.type()) val.typeid = self.from_native_type(nativeValue.type())