Skip to content

Commit f58adad

Browse files
committed
fix(tools_qt): fix widget existance check
1 parent 7b91d74 commit f58adad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools_qt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def get_text(dialog, widget, add_quote=False, return_string_null=True):
321321
if type(widget) is str:
322322
widget = dialog.findChild(QWidget, widget)
323323

324-
if not widget:
324+
if widget is None:
325325
return "null" if return_string_null else ""
326326

327327
text = None

0 commit comments

Comments
 (0)