From f5a4d51c8f05347fc491aa91f2fb0d2911f1c548 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Wed, 15 Jun 2016 19:23:23 +0200 Subject: [PATCH] [Horus] Bug in Special functions contextual menu (when the Volume function was used) --- radio/src/gui/horus/menu_model_custom_functions.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/radio/src/gui/horus/menu_model_custom_functions.cpp b/radio/src/gui/horus/menu_model_custom_functions.cpp index 2331a2f7a..408cd355b 100644 --- a/radio/src/gui/horus/menu_model_custom_functions.cpp +++ b/radio/src/gui/horus/menu_model_custom_functions.cpp @@ -305,8 +305,10 @@ bool menuCustomFunctions(evt_t event, CustomFunctionData * functions, CustomFunc else if (func == FUNC_VOLUME) { val_max = MIXSRC_LAST_CH; putsMixerSource(MODEL_CUSTOM_FUNC_3RD_COLUMN, y, val_displayed, attr); - INCDEC_SET_FLAG(eeFlags | INCDEC_SOURCE); - INCDEC_ENABLE_CHECK(isSourceAvailable); + if (active) { + INCDEC_SET_FLAG(eeFlags | INCDEC_SOURCE); + INCDEC_ENABLE_CHECK(isSourceAvailable); + } } else if (func == FUNC_LOGS) { if (val_displayed) {