Author: bugman Date: Wed Jun 15 16:01:58 2011 New Revision: 13043 URL: http://svn.gna.org/viewcvs/relax?rev=13043&view=rev Log: The synchronisation of analysis tabs and the relax data store now works. Modified: branches/gui_testing/gui/relax_gui.py Modified: branches/gui_testing/gui/relax_gui.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/relax_gui.py?rev=13043&r1=13042&r2=13043&view=diff ============================================================================== --- branches/gui_testing/gui/relax_gui.py (original) +++ branches/gui_testing/gui/relax_gui.py Wed Jun 15 16:01:58 2011 @@ -584,11 +584,6 @@ # Update the core of the GUI to match the new data store. self.sync_ds(upload=False) - # Execute the analysis frame specific update methods. - for analysis in self.analyses: - if hasattr(analysis, 'sync_ds'): - analysis.sync_ds(upload=False) - def state_save(self): """Save the program state.""" @@ -615,6 +610,14 @@ @type upload: bool """ - # Synchronise each frame. - for frame in self.analyses: - frame.sync_ds(upload) + # Loop over each analysis. + for i in range(len(self.analyses)): + # Link the data. + if not upload: + self.analyses[i].link_data(ds.relax_gui.analyses[i]) + + # Execute the analysis frame specific update methods. + if hasattr(self.analyses[i], 'sync_ds'): + self.analyses[i].sync_ds(upload) + +