From 0b1ad5988d102507d4db793a289151cfedd4f1e3 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Tue, 28 Jul 2020 22:46:49 +0200 Subject: [PATCH] - psisetup: simplify 25c79afcc31ecf4a821d19ff6eded53222a5a676 Signed-off-by: Thilo Graf commit was: - psisetup: avoid cursor on last item e28f72984bcbf2fda748b445934c73b841b06c21 --- src/gui/psisetup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/psisetup.cpp b/src/gui/psisetup.cpp index 83a4386c9..82adcb741 100644 --- a/src/gui/psisetup.cpp +++ b/src/gui/psisetup.cpp @@ -190,7 +190,7 @@ int CPSISetup::exec (CMenuTarget * parent, const std::string &) direction = -1; /* fall through */ case CRCInput::RC_down: - if (selected + direction > -1 && selected + direction < (PSI_SCALE_COUNT - 1)) + if (selected + direction > -1 && selected + direction < PSI_RESET) { psi_list[selected].selected = false; paintSlider (selected);