Author: bugman
Date: Tue Mar 17 11:12:55 2015
New Revision: 27819

URL: http://svn.gna.org/viewcvs/relax?rev=27819&view=rev
Log:
Fix for the pipe_control.reset.reset() function when resetting the GUI in 
non-standard contexts.

This is mainly for debugging scripts when simulating a GUI and hence the GUI 
reset() method does not
exist.


Modified:
    trunk/pipe_control/reset.py

Modified: trunk/pipe_control/reset.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/pipe_control/reset.py?rev=27819&r1=27818&r2=27819&view=diff
==============================================================================
--- trunk/pipe_control/reset.py (original)
+++ trunk/pipe_control/reset.py Tue Mar 17 11:12:55 2015
@@ -1,6 +1,6 @@
 ###############################################################################
 #                                                                             #
-# Copyright (C) 2003-2013 Edward d'Auvergne                                   #
+# Copyright (C) 2003-2015 Edward d'Auvergne                                   #
 #                                                                             #
 # This file is part of the program relax (http://www.nmr-relax.com).          #
 #                                                                             #
@@ -46,4 +46,5 @@
             return
 
         # Call the GUI reset.
-        app.gui.reset()
+        if hasattr(app.gui, 'reset'):
+            app.gui.reset()


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
relax-commits@gna.org

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to