diff options
author | 2016-03-02 20:39:20 +0100 | |
---|---|---|
committer | 2016-03-02 20:39:20 +0100 | |
commit | 1914702e6fae052668df5b068a502bca57c9a3b0 (patch) | |
tree | ae511fa09275e9523dc126c34cb15a7a619a94aa | |
parent | a43278be3dc958020bf3645060c557311c3cb4c5 (diff) |
dirmenu: proper removal of the folder from the path. (nw)
-rw-r--r-- | src/emu/ui/dirmenu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/ui/dirmenu.cpp b/src/emu/ui/dirmenu.cpp index 91c300cecdf..a24a0041653 100644 --- a/src/emu/ui/dirmenu.cpp +++ b/src/emu/ui/dirmenu.cpp @@ -593,10 +593,10 @@ void ui_menu_remove_folder::handle() if (m_event != nullptr && m_event->itemref != nullptr && m_event->iptkey == IPT_UI_SELECT) { std::string tmppath, error_string; + m_folders.erase(m_folders.begin() + selected); for (int x = 0; x < m_folders.size(); ++x) { - if (x != selected) - tmppath.append(m_folders[x]); + tmppath.append(m_folders[x]); if (x < m_folders.size() - 1) tmppath.append(";"); } |