Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/bugfix/8311_apply_cor_scale'
Browse files Browse the repository at this point in the history
  • Loading branch information
jawrainey committed Nov 15, 2013
2 parents 3d6102c + b496d6a commit 34dffce
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 34dffce

Please sign in to comment.