From ece0e168ef857c1f3af9e9edc97f61de62b87029 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Thu, 1 Jul 2021 22:14:47 -0700 Subject: [PATCH] mGUI: Pressing confirm should only advance valid states if the data is a string --- src/util/gui/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/gui/menu.c b/src/util/gui/menu.c index 0a51102d0..ae9949075 100644 --- a/src/util/gui/menu.c +++ b/src/util/gui/menu.c @@ -137,7 +137,7 @@ enum GUIMenuExitReason GUIShowMenu(struct GUIParams* params, struct GUIMenu* men if (reason != GUI_MENU_EXIT_BACK) { return reason; } - } else if ((*item)->validStates && !(*item)->data.v.p) { + } else if ((*item)->validStates && GUIVariantIsString((*item)->data)) { _itemNext(*item, true); } else { return GUI_MENU_EXIT_ACCEPT;