We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36038bb commit ff664fbCopy full SHA for ff664fb
guidata/qthelpers.py
@@ -666,11 +666,7 @@ def close_widgets_and_quit(screenshot: bool = False) -> None:
666
for widget in QW.QApplication.instance().topLevelWidgets():
667
if not is_qobject_valid(widget):
668
continue
669
- try:
670
- wname = widget.objectName()
671
- except RuntimeError:
672
- # Widget has been deleted
673
- continue
+ wname = widget.objectName()
674
if screenshot and wname and widget.isVisible(): # pragma: no cover
675
grab_save_window(widget, wname.lower())
676
assert widget.close()
0 commit comments