Skip to content
Snippets Groups Projects
Commit 82462b25 authored by Conor Finn's avatar Conor Finn
Browse files

RE #26846 Fixed instrument issue with MantidPlot

parent 001b5733
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ class EngineeringDiffractionGui(QtWidgets.QMainWindow, Ui_main_window):
self.lineEdit_RBNumber.textChanged.connect(slot)
def set_on_instrument_changed(self, slot):
self.comboBox_instrument.currentTextChanged.connect(slot)
self.comboBox_instrument.currentIndexChanged.connect(slot)
def open_help_window(self):
InterfaceManager().showCustomInterfaceHelp(self.doc)
......
......@@ -46,6 +46,12 @@ class CalibrationPresenter(object):
self.disable_calibrate_buttons()
def set_instrument_override(self, instrument):
if instrument == 0:
instrument = "ENGINX"
elif instrument == 1:
instrument = "IMAT"
else:
raise ValueError("Invalid instrument index")
self.view.set_instrument_override(instrument)
self.instrument = instrument
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment