forked from qt-creator/qt-creator
Dumper: Fix value of not callable pseudo member
Task-number: QTCREATORBUG-8124 Change-Id: I86ab891f18d9a0cc58217711637c8587cd42bb07 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -508,9 +508,16 @@ def qdump__QFileInfo(d, value):
|
||||
d.putCallItem("ownerid", value, "ownerId")
|
||||
|
||||
#QFile::Permissions permissions () const
|
||||
try:
|
||||
perms = d.call(value, "permissions")
|
||||
except:
|
||||
perms = None
|
||||
|
||||
if perms is None:
|
||||
d.putValue("<not available>")
|
||||
with SubItem(d, "permissions"):
|
||||
d.putSpecialValue("notcallable")
|
||||
d.putType(ns + "QFile::Permissions")
|
||||
d.putNumChild(0)
|
||||
else:
|
||||
with SubItem(d, "permissions"):
|
||||
d.putEmptyValue()
|
||||
|
Reference in New Issue
Block a user