Skip to content

Commit

Permalink
Add an error messgae for TOSCA/TFXA for now
Browse files Browse the repository at this point in the history
Refs #10670
  • Loading branch information
DanNixon committed Dec 3, 2014
1 parent 9a45765 commit cbcd86b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ namespace MantidQt

uiv.checkFieldIsNotEmpty("Chemical Formula", m_uiForm.leChemicalFormula, m_uiForm.valChemicalFormula);

// Ignore TOSCA and it's variants, they store efixed per detector
std::string instrumentName = m_uiForm.cbInstrument->currentText().toStdString();
if(instrumentName == "TOSCA" || instrumentName == "TFXA")
uiv.addErrorMessage(QString::fromStdString(instrumentName) + " is currently not supported.");

QString error = uiv.generateErrorMessage();
showMessageBox(error);

Expand Down

0 comments on commit cbcd86b

Please sign in to comment.