Author: bugman Date: Wed Sep 15 16:43:15 2010 New Revision: 11554 URL: http://svn.gna.org/viewcvs/relax?rev=11554&view=rev Log: Fix for the 'save' and 'save as' file actions when no file is selected. The method action_state_save_as() now does nothing if no file was selected. This prevents a trackback if the file selection dialog is closed without selecting a file. Modified: branches/bieri_gui/gui_bieri/relax_gui.py Modified: branches/bieri_gui/gui_bieri/relax_gui.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/relax_gui.py?rev=11554&r1=11553&r2=11554&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/relax_gui.py (original) +++ branches/bieri_gui/gui_bieri/relax_gui.py Wed Sep 15 16:43:15 2010 @@ -208,6 +208,10 @@ # Open the dialog. filename = savefile(msg='Select file to save', filetype='state.bz2', default='relax save files (*.bz2)|*.bz2|all files (*.*)|*.*') + # Do nothing - no file was selected. + if not filename: + return + # Set the file name. self.save_file = filename