Skip to content

Commit

Permalink
Refs #8311 Fix scale multiplier still being enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Jackson committed Nov 4, 2013
1 parent 60f0bf5 commit b496d6a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Code/Mantid/MantidQt/CustomInterfaces/src/ApplyCorr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ namespace IDA
{
connect(uiForm().abscor_ckUseCan, SIGNAL(toggled(bool)), uiForm().abscor_dsContainer, SLOT(setEnabled(bool)));
connect(uiForm().abscor_ckUseCan, SIGNAL(toggled(bool)), uiForm().abscor_ckScaleMultiplier, SLOT(setEnabled(bool)));
connect(uiForm().abscor_ckUseCan, SIGNAL(toggled(bool)), this, SLOT(scaleMultiplierCheck(bool)));
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)));
Expand All @@ -39,7 +40,17 @@ namespace IDA
*/
void ApplyCorr::scaleMultiplierCheck(bool state)
{
uiForm().abscor_leScaleMultiplier->setEnabled(state);
//scale input should be disabled if we're not using a can
if(!uiForm().abscor_ckUseCan->isChecked())
{
uiForm().abscor_leScaleMultiplier->setEnabled(false);
}
else
{
//else it should be whatever the scale checkbox is
state = uiForm().abscor_ckScaleMultiplier->isChecked();
uiForm().abscor_leScaleMultiplier->setEnabled(state);
}
}


Expand Down

0 comments on commit b496d6a

Please sign in to comment.