Fix SF changing adjust GV# not resetting mode (#6343)
This commit is contained in:
committed by
Raphael Coeffic
parent
c0dbc2cbb7
commit
645fb219f8
@@ -384,7 +384,6 @@ void CustomFunctionsPanel::refreshCustomFunction(int i, bool modified)
|
|||||||
cfn.swtch = RawSwitch(fswtchSwtch[i]->currentData().toInt());
|
cfn.swtch = RawSwitch(fswtchSwtch[i]->currentData().toInt());
|
||||||
cfn.func = func;
|
cfn.func = func;
|
||||||
cfn.enabled = fswtchEnable[i]->isChecked();
|
cfn.enabled = fswtchEnable[i]->isChecked();
|
||||||
cfn.adjustMode = (AssignFunc)fswtchGVmode[i]->currentIndex();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!cfn.isEmpty()) {
|
if (!cfn.isEmpty()) {
|
||||||
@@ -418,6 +417,7 @@ void CustomFunctionsPanel::refreshCustomFunction(int i, bool modified)
|
|||||||
int gvidx = func - FuncAdjustGV1;
|
int gvidx = func - FuncAdjustGV1;
|
||||||
if (modified)
|
if (modified)
|
||||||
cfn.adjustMode = fswtchGVmode[i]->currentIndex();
|
cfn.adjustMode = fswtchGVmode[i]->currentIndex();
|
||||||
|
fswtchGVmode[i]->setCurrentIndex(cfn.adjustMode);
|
||||||
widgetsMask |= CUSTOM_FUNCTION_GV_MODE | CUSTOM_FUNCTION_ENABLE;
|
widgetsMask |= CUSTOM_FUNCTION_GV_MODE | CUSTOM_FUNCTION_ENABLE;
|
||||||
if (cfn.adjustMode==FUNC_ADJUST_GVAR_CONSTANT || cfn.adjustMode==FUNC_ADJUST_GVAR_INCDEC) {
|
if (cfn.adjustMode==FUNC_ADJUST_GVAR_CONSTANT || cfn.adjustMode==FUNC_ADJUST_GVAR_INCDEC) {
|
||||||
if (modified)
|
if (modified)
|
||||||
|
|||||||
Reference in New Issue
Block a user