summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2008-08-21 11:26:37 +0000
committer Nathan Woods <npwoods@mess.org>2008-08-21 11:26:37 +0000
commitef062182ce7e9defd966e374828d037fb07c9832 (patch)
tree0b2f13c49982afb72bea1125ea67a7fb82f5d34b /src/emu
parenta211e376948b517d221fa7b635f8a9cfda1aeecb (diff)
Fixed problem that would cause the "Return To Prior Menu" menu item to not stick
if one is calling ui_menu_reset() with UI_MENU_RESET_REMEMBER_POSITION, and that menu item is selected
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/uimenu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emu/uimenu.c b/src/emu/uimenu.c
index ae059048626..2f4bbee42b1 100644
--- a/src/emu/uimenu.c
+++ b/src/emu/uimenu.c
@@ -556,6 +556,8 @@ void ui_menu_item_append(ui_menu *menu, const char *text, const char *subtext, U
/* update the selection if we need to */
if (menu->resetpos == index || (menu->resetref != NULL && menu->resetref == ref))
menu->selected = index;
+ if (menu->resetpos == menu->numitems - 1)
+ menu->selected = menu->numitems - 1;
}