Author: bugman Date: Tue Jun 7 16:41:43 2011 New Revision: 12880 URL: http://svn.gna.org/viewcvs/relax?rev=12880&view=rev Log: Not selecting a peak list file also vetos the event so the cell is not editable. Modified: 1.3/gui/components/spectrum.py Modified: 1.3/gui/components/spectrum.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/components/spectrum.py?rev=12880&r1=12879&r2=12880&view=diff ============================================================================== --- 1.3/gui/components/spectrum.py (original) +++ 1.3/gui/components/spectrum.py Tue Jun 7 16:41:43 2011 @@ -153,11 +153,12 @@ # File selection. if col == 0: - # The file + # The file. filename = openfile(msg='Select file.', filetype='*.*', default='all files (*.*)|*') - # Abort if nothing selected + # Abort if nothing selected. if not filename: + event.Veto() return # Set the file name.