Author: bugman Date: Mon Jul 25 21:14:45 2011 New Revision: 13869 URL: http://svn.gna.org/viewcvs/relax?rev=13869&view=rev Log: A strong warning is now given to the user if they try to modify the model-free model list. Modified: branches/gui_testing/gui/analyses/auto_model_free.py Modified: branches/gui_testing/gui/analyses/auto_model_free.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/auto_model_free.py?rev=13869&r1=13868&r2=13869&view=diff ============================================================================== --- branches/gui_testing/gui/analyses/auto_model_free.py (original) +++ branches/gui_testing/gui/analyses/auto_model_free.py Mon Jul 25 21:14:45 2011 @@ -48,7 +48,7 @@ from gui.controller import Redirect_text from gui.filedialog import opendir from gui.fonts import font -from gui.message import error_message, missing_data +from gui.message import error_message, question, missing_data from gui.misc import add_border, gui_to_int, list_to_gui, protected_exec, str_to_gui from gui import paths @@ -733,6 +733,11 @@ @type event: wx event """ + # First state that this should not be done. + msg = "The model-free models used in dauvergne_protocol auto-analysis should almost never be changed! The consequences will be unpredictable. Please proceed only if you are sure of what you are doing. Would you like to modify the model-free model list?" + if not question(msg, caption="Warning - do not change!", default=False): + return + # Show the model selector window. if status.show_gui: self.model_win.ShowModal()