Skip to content

Commit

Permalink
Re #4303 fix stitcher
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoucet committed Jan 19, 2012
1 parent 7e03ed3 commit 06728d1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def __init__(self, parent=None):
self._graph = "StitchedData"
self._output_dir = None
self._stitcher = None
self._plotted = False

def initialize_content(self):
"""
Expand Down Expand Up @@ -244,6 +245,7 @@ def _update_low_q(self, ws=None):
else:
self._low_q_data = None
util.set_valid(self._content.low_q_combo.lineEdit(), False)
self._plotted = False

def _update_medium_q(self, ws=None):
"""
Expand Down Expand Up @@ -272,6 +274,7 @@ def _update_medium_q(self, ws=None):
else:
self._medium_q_data = None
util.set_valid(self._content.medium_q_combo.lineEdit(), False)
self._plotted = False

def _update_high_q(self, ws=None):
"""
Expand All @@ -295,6 +298,7 @@ def _update_high_q(self, ws=None):
else:
self._high_q_data = None
util.set_valid(self._content.high_q_combo.lineEdit(), False)
self._plotted = False

def data_browse_dialog(self):
"""
Expand Down Expand Up @@ -433,9 +437,10 @@ def plot_result(self):

if len(ws_list)>0:
g = _qti.app.graph(self._graph)
if g is None:
if g is None or not self._plotted:
g = _qti.app.mantidUI.pyPlotSpectraList(ws_list,[0],True)
g.setName(self._graph)
self._plotted = True

def _save_result(self):
"""
Expand Down

0 comments on commit 06728d1

Please sign in to comment.