Skip to content

Commit aa16638

Browse files
committed
Enforce string for text in inspector
Fixes Cusor inspector bug #7
1 parent 02bcc13 commit aa16638

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugindevtools/PluginDevTools/PluginDevToolsWidget.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,10 +1766,10 @@ def setItem(self, obj, parentItem, depth, objType):
17661766
parentItem.appendRow([
17671767
QStandardItem( Krita.instance().icon('visible' if visible else 'novisible'), type(obj).__name__ ),
17681768
#QStandardItem( Krita.instance().icon('novisible' if objType == 'topLevelWidgets' and obj.isHidden() else 'visible'), type(obj).__name__ ),
1769-
QStandardItem( obj.objectName() ),
1770-
QStandardItem( obj.metaObject().className() ),
1771-
QStandardItem( objType ),
1772-
QStandardItem( text )
1769+
QStandardItem( str(obj.objectName()) ),
1770+
QStandardItem( str(obj.metaObject().className()) ),
1771+
QStandardItem( str(objType) ),
1772+
QStandardItem( str(text) )
17731773
])
17741774

17751775
item = parentItem.child(parentItem.rowCount() - 1)

0 commit comments

Comments
 (0)