From fa41ad2cde42529ca4eb0c7b57cbec728fe927bf Mon Sep 17 00:00:00 2001 From: etabeta78 Date: Tue, 6 Jan 2015 16:43:08 +0100 Subject: (MESS) ui: when ESCing while creating a new floppy image, fall back to the correct menu. [Fabio Priuli] --- src/emu/imagedev/floppy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/imagedev/floppy.c b/src/emu/imagedev/floppy.c index 71e59fcf437..6155f59fcbd 100644 --- a/src/emu/imagedev/floppy.c +++ b/src/emu/imagedev/floppy.c @@ -925,7 +925,7 @@ void ui_menu_control_floppy_image::hook_load(astring filename, bool softlist) void ui_menu_control_floppy_image::handle() { floppy_image_device *fd = static_cast(image); - switch(state) { + switch (state) { case DO_CREATE: { floppy_image_format_t *fif_list = fd->get_formats(); int ext_match = 0, total_usable = 0; @@ -985,7 +985,7 @@ void ui_menu_control_floppy_image::handle() break; case -1: - ui_menu::stack_pop(machine()); + state = START_FILE; break; } break; -- cgit v1.2.3