Skip to content

Commit

Permalink
Re #4303 ensure we can swap range selector between workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoucet committed Feb 3, 2012
1 parent af94178 commit f1d981a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Code/Mantid/scripts/LargeScaleStructures/data_stitching.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ def connect(self, ws, call_back):
self._call_back = call_back
_qti.app.connect(_qti.app.mantidUI, QtCore.SIGNAL("x_range_update(double,double)"), self._call_back)
g = _qti.app.graph(self._graph)
if g is None:
g = _qti.app.mantidUI.pyPlotSpectraList(ws,[0],True)
g.setName(self._graph)
if g is not None:
g.close()
g = _qti.app.mantidUI.pyPlotSpectraList(ws,[0],True)
g.setName(self._graph)
_qti.app.selectMultiPeak(g,False)

@classmethod
Expand Down

0 comments on commit f1d981a

Please sign in to comment.