Changeset 7451b88 in sasview for src/sas/qtgui/MainWindow.py


Ignore:
Timestamp:
Oct 7, 2016 2:41:12 PM (8 years ago)
Author:
davidm
Branches:
ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
d813cad8
Parents:
97f05432
git-author:
David Mannicke <david.mannicke@…> (10/07/16 14:16:42)
git-committer:
David Mannicke <david.mannicke@…> (10/07/16 14:41:12)
Message:

cancelling the Quit dialog will now prevent the MainWindow? from closing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow.py

    r2366fb2 r7451b88  
    6565 
    6666    def closeEvent(self, event): 
    67         self.guiManager.quitApplication() 
     67        if self.guiManager.quitApplication(): 
     68            event.accept() 
     69        else: 
     70            event.ignore() 
    6871 
    6972 
Note: See TracChangeset for help on using the changeset viewer.