mailr12880 - /1.3/gui/components/spectrum.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 07, 2011 - 16:41:
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.




Related Messages


Powered by MHonArc, Updated Tue Jun 07 17:00:02 2011