File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -2862,6 +2862,14 @@ def quit(self):
2862
2862
if reply is QtGui.QMessageBox.No:
2863
2863
return
2864
2864
'''
2865
+ # save state and geometry self and all widgets
2866
+ self .saveSettings ()
2867
+ for attr , obj in self .ui .__dict__ .iteritems ():
2868
+ if hasattr (obj , "__class__" ) and isinstance (obj , settingsmixin .SettingsMixin ):
2869
+ saveMethod = getattr (obj , "saveSettings" , None )
2870
+ if callable (saveMethod ):
2871
+ obj .saveSettings ()
2872
+
2865
2873
shared .doCleanShutdown ()
2866
2874
self .tray .hide ()
2867
2875
# unregister the messaging system
@@ -2891,13 +2899,6 @@ def closeEvent(self, event):
2891
2899
# minimize the application
2892
2900
event .ignore ()
2893
2901
else :
2894
- # save state and geometry self and all widgets
2895
- self .saveSettings ()
2896
- for attr , obj in self .ui .__dict__ .iteritems ():
2897
- if hasattr (obj , "__class__" ) and isinstance (obj , settingsmixin .SettingsMixin ):
2898
- saveMethod = getattr (obj , "saveSettings" , None )
2899
- if callable (saveMethod ):
2900
- obj .saveSettings ()
2901
2902
# quit the application
2902
2903
event .accept ()
2903
2904
self .quit ()
You can’t perform that action at this time.
0 commit comments