Author: bugman Date: Tue Apr 24 14:36:27 2012 New Revision: 15807 URL: http://svn.gna.org/viewcvs/relax?rev=15807&view=rev Log: Exiting the GUI now only warns about data loss only if there is data to loose. The relax data store is_empty() method is being used to skip the question dialog, allowing relax to be shut quickly. Modified: 1.3/gui/relax_gui.py Modified: 1.3/gui/relax_gui.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/relax_gui.py?rev=15807&r1=15806&r2=15807&view=diff ============================================================================== --- 1.3/gui/relax_gui.py (original) +++ 1.3/gui/relax_gui.py Tue Apr 24 14:36:27 2012 @@ -342,7 +342,7 @@ # Ask if the user is sure they would like to exit. doexit = wx.ID_YES - if status.show_gui: + if status.show_gui and not ds.is_empty(): doexit = Question('Are you sure you would like to quit relax? All unsaved data will be lost.', title='Exit relax', default=True).ShowModal() # Exit.