mailr16487 - /branches/uf_redesign/gui/relax_gui.py


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

Header


Content

Posted by edward on May 28, 2012 - 18:08:
Author: bugman
Date: Mon May 28 18:08:18 2012
New Revision: 16487

URL: http://svn.gna.org/viewcvs/relax?rev=16487&view=rev
Log:
The relax GUI state_load() method now checks if the data store is empty.

Previously a warning was only giving is analysis tabs are loaded.  Now the 
warning occurs whenever
there is data in the relax data store.


Modified:
    branches/uf_redesign/gui/relax_gui.py

Modified: branches/uf_redesign/gui/relax_gui.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/relax_gui.py?rev=16487&r1=16486&r2=16487&view=diff
==============================================================================
--- branches/uf_redesign/gui/relax_gui.py (original)
+++ branches/uf_redesign/gui/relax_gui.py Mon May 28 18:08:18 2012
@@ -693,7 +693,7 @@
             return
 
         # Warning.
-        if not self.analysis.init_state:
+        if not self.analysis.init_state or not ds.is_empty():
             # The message.
             msg = "Loading a saved relax state file will cause all unsaved 
data to be lost.  Are you sure you would to open a save file?"
 




Related Messages


Powered by MHonArc, Updated Mon May 28 18:20:02 2012