From 1c1624b8a6e220896401442e750940d230dcde2b Mon Sep 17 00:00:00 2001 From: Kilrah Date: Sun, 26 Nov 2017 23:03:43 +0100 Subject: [PATCH] [companion] Adjust GVAR not possible in global functions (fix #5425) --- companion/src/modeledit/customfunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/companion/src/modeledit/customfunctions.cpp b/companion/src/modeledit/customfunctions.cpp index 79e335125..a08954768 100644 --- a/companion/src/modeledit/customfunctions.cpp +++ b/companion/src/modeledit/customfunctions.cpp @@ -678,7 +678,7 @@ void CustomFunctionsPanel::populateFuncCB(QComboBox *b, unsigned int value) ((i==FuncSetTimer3) && firmware->getCapability(Timers) < 3) || ((i==FuncScreenshot) && IS_HORUS(firmware->getBoard())) || ((i>=FuncRangeCheckInternalModule && i<=FuncBindExternalModule) && (!model || !firmware->getCapability(DangerousFunctions))) || - ((i>=FuncAdjustGV1 && i<=FuncAdjustGVLast) && !firmware->getCapability(Gvars)) + ((i>=FuncAdjustGV1 && i<=FuncAdjustGVLast) && (!model || !firmware->getCapability(Gvars))) ) { // skipped // b->addItem(CustomFunctionData(AssignFunc(i)).funcToString(), i); -- 2.11.4.GIT