Skip to content

Commit

Permalink
Fixes #341: use QApplication.instance()
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrettSJohnson committed Mar 14, 2024
1 parent e4530f7 commit 112b24d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/pmg_qt/pymol_qt_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 112b24d

Please sign in to comment.