diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index 7bc99a4e4..88a62a1e1 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -4012,17 +4012,15 @@ void UpdateHotkeyAssignments() text = itemText; //Store in string object truncate = text.find("\t"); //Find the tab if (truncate >= 1) //Truncate if it exists - text = text.substr(0,truncate+1); + text = text.substr(0,truncate); keyname = CustomKeys.OpenROM.key; //Get key & modifiers keyname.insert(0,GetModifierString(CustomKeys.OpenROM.modifiers)); + text.append("\t"); text.append(keyname); - ChangeMenuItemText(IDM_OPEN, text); //Set Menu item text - - + ChangeMenuItemText(IDM_OPEN, text); } - /*** * Author: adelikat * Date Added: May 8, 2009