From 112b24d72f2518179a423699eb717d4139d8bc46 Mon Sep 17 00:00:00 2001 From: Jarrett Johnson Date: Thu, 14 Mar 2024 11:06:58 -0400 Subject: [PATCH] Fixes #341: use QApplication.instance() --- modules/pmg_qt/pymol_qt_gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/pmg_qt/pymol_qt_gui.py b/modules/pmg_qt/pymol_qt_gui.py index f6346f168..a0714ea66 100644 --- a/modules/pmg_qt/pymol_qt_gui.py +++ b/modules/pmg_qt/pymol_qt_gui.py @@ -867,7 +867,7 @@ def cd_dialog(self): self.cmd.cd(dname or '.', quiet=0) def confirm_quit(self): - QtWidgets.qApp.quit() + QtWidgets.QApplication.instance().quit() def settings_edit_all_dialog(self): from .advanced_settings_gui import PyMOLAdvancedSettings