From 4f1bcd21120b331d3d2cb0f8fbfd7cfc743d284e Mon Sep 17 00:00:00 2001 From: Ilari Liusvaara Date: Mon, 6 Feb 2012 21:56:08 +0200 Subject: [PATCH] Wxwidgets: Pass correct mode when dumping Wxwidgets dumping incorrectly passed mode description instead of mode to the dumper. Fix this. --- src/plat-wxwidgets/dumpmenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plat-wxwidgets/dumpmenu.cpp b/src/plat-wxwidgets/dumpmenu.cpp index 65cc0079..f8e32b08 100644 --- a/src/plat-wxwidgets/dumpmenu.cpp +++ b/src/plat-wxwidgets/dumpmenu.cpp @@ -152,7 +152,7 @@ void dumper_menu::update(const std::map& new_dumpers) for(auto j : i.second.modes) { menustructure[i.first].start_items[id] = Append(id, towxstring("Dump " + i.second.name + " (" + j.second + ")")); - menustructure[i.first].start_wxids[id++] = j.second; + menustructure[i.first].start_wxids[id++] = j.first; } } else { menustructure[i.first].end_item = Append(id, towxstring("End " + i.second.name));