Skip to content

Commit

Permalink
Fixed issue with flag missing. This refs #4303
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanBilheux committed May 11, 2012
1 parent b7f22bf commit 05e9174
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ def _integrated_plot(self, is_high_res, file_ctrl, min_ctrl, max_ctrl):
@param max_ctrl: control widget containing the range maximum
"""
if not IS_IN_MANTIDPLOT:
return
return

f = FileFinder.findRuns("%s%s" % (self.instrument_name, str(file_ctrl.text())))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,13 @@ def set_state(self, state):

def set_editing_state(self, state):
super(DataReflWidget, self).set_editing_state(state)

self._summary.tof_range_switch.setChecked(state.TofRangeFlag)
self._tof_range_clicked(state.TofRangeFlag)

try:
self._summary.tof_range_switch.setChecked(state.TofRangeFlag)
self._tof_range_clicked(state.TofRangeFlag)
except:
self._summary.tof_range_switch.setChecked(True)
self._tof_range_clicked(True)

def get_state(self):
"""
Expand Down

0 comments on commit 05e9174

Please sign in to comment.