From 5ab2053b5c50ed6b1378e2b643f2c41026a76bfd Mon Sep 17 00:00:00 2001 From: Samuel Jackson Date: Fri, 7 Feb 2014 10:44:26 +0000 Subject: [PATCH] Refs #8838 Disable option on plot when not available. --- .../inc/MantidQtCustomInterfaces/IndirectDataAnalysis.ui | 3 +++ Code/Mantid/MantidQt/CustomInterfaces/src/ApplyCorr.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/IndirectDataAnalysis.ui b/Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/IndirectDataAnalysis.ui index 56ad0a48e151..a19e1dc77428 100644 --- a/Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/IndirectDataAnalysis.ui +++ b/Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/IndirectDataAnalysis.ui @@ -2092,6 +2092,9 @@ + + false + Plot Contributions diff --git a/Code/Mantid/MantidQt/CustomInterfaces/src/ApplyCorr.cpp b/Code/Mantid/MantidQt/CustomInterfaces/src/ApplyCorr.cpp index ae19cfebeb3c..a694328b4e51 100644 --- a/Code/Mantid/MantidQt/CustomInterfaces/src/ApplyCorr.cpp +++ b/Code/Mantid/MantidQt/CustomInterfaces/src/ApplyCorr.cpp @@ -23,6 +23,7 @@ namespace IDA connect(uiForm().abscor_ckUseCorrections, SIGNAL(toggled(bool)), uiForm().abscor_dsCorrections, SLOT(setEnabled(bool))); connect(uiForm().abscor_ckScaleMultiplier, SIGNAL(toggled(bool)), this, SLOT(scaleMultiplierCheck(bool))); connect(uiForm().abscor_cbGeometry, SIGNAL(currentIndexChanged(int)), this, SLOT(handleGeometryChange(int))); + connect(uiForm().abscor_ckUseCan, SIGNAL(toggled(bool)), uiForm().abscor_ckPlotContrib, SLOT(setEnabled(bool))); // Create a validator for input box of the Scale option. m_valPosDbl = new QDoubleValidator(this);