From 7c57512f949ad5e61c0ef49daa1971335327e31c Mon Sep 17 00:00:00 2001 From: Andre Bernet Date: Mon, 27 Jun 2016 13:17:14 +0200 Subject: [PATCH] LSs weren't selectable as input source (Fix #3632) --- radio/src/gui/gui_helpers.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/radio/src/gui/gui_helpers.cpp b/radio/src/gui/gui_helpers.cpp index b8bb10c6a..ac06f5736 100644 --- a/radio/src/gui/gui_helpers.cpp +++ b/radio/src/gui/gui_helpers.cpp @@ -230,6 +230,11 @@ bool isInputSourceAvailable(int source) if (source>=MIXSRC_FIRST_CH && source<=MIXSRC_LAST_CH) return true; + + if (source>=MIXSRC_FIRST_LOGICAL_SWITCH && source<=MIXSRC_LAST_LOGICAL_SWITCH) { + LogicalSwitchData * cs = lswAddress(source-MIXSRC_SW1); + return (cs->func != LS_FUNC_NONE); + } if (source>=MIXSRC_FIRST_TRAINER && source<=MIXSRC_LAST_TRAINER) return true;