summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/filemngr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/ui/filemngr.cpp')
-rw-r--r--src/frontend/mame/ui/filemngr.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/frontend/mame/ui/filemngr.cpp b/src/frontend/mame/ui/filemngr.cpp
index 8b4c758c69d..07842f423aa 100644
--- a/src/frontend/mame/ui/filemngr.cpp
+++ b/src/frontend/mame/ui/filemngr.cpp
@@ -154,7 +154,9 @@ void menu_file_manager::populate(float &customtop, float &custombottom)
}
}
item_append(menu_item_type::SEPARATOR);
- item_append("Reset", "", 0, (void *)1);
+
+ if (m_warnings.empty() || m_curr_selected)
+ item_append("Reset", "", 0, (void *)1);
custombottom = ui().get_line_height() + 3.0f * UI_BOX_TB_BORDER;
}
@@ -172,8 +174,7 @@ void menu_file_manager::handle()
{
if ((uintptr_t)event->itemref == 1)
{
- if (m_curr_selected)
- machine().schedule_hard_reset();
+ machine().schedule_hard_reset();
}
else
{