From 4e71a63a50985458f93f4d910d8a76d1a8db97dc Mon Sep 17 00:00:00 2001 From: elecpower Date: Sun, 25 Oct 2020 17:12:57 +1100 Subject: [PATCH] Fix special functions refresh --- companion/src/modeledit/customfunctions.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/companion/src/modeledit/customfunctions.cpp b/companion/src/modeledit/customfunctions.cpp index b3662f964..abdd2e39c 100644 --- a/companion/src/modeledit/customfunctions.cpp +++ b/companion/src/modeledit/customfunctions.cpp @@ -378,6 +378,10 @@ void CustomFunctionsPanel::refreshCustomFunction(int i, bool modified) cfn.func = func; cfn.enabled = fswtchEnable[i]->isChecked(); } + else { + fswtchSwtch[i]->setCurrentIndex(fswtchSwtch[i]->findData(cfn.swtch.toValue())); + fswtchFunc[i]->setCurrentIndex(fswtchFunc[i]->findData(cfn.func)); + } if (!cfn.isEmpty()) { widgetsMask |= CUSTOM_FUNCTION_SHOW_FUNC;