diff --git a/UI/ControlMappingScreen.cpp b/UI/ControlMappingScreen.cpp index 7acdd36f05..f6255ad4e3 100644 --- a/UI/ControlMappingScreen.cpp +++ b/UI/ControlMappingScreen.cpp @@ -313,7 +313,7 @@ UI::EventReturn ControlMappingScreen::OnVisualizeMapping(UI::EventParams ¶ms } void ControlMappingScreen::dialogFinished(const Screen *dialog, DialogResult result) { - if (result == DR_OK && dialog->tag() == "listpopup") { + if (result == DR_OK && std::string(dialog->tag()) == "listpopup") { ListPopupScreen *popup = (ListPopupScreen *)dialog; KeyMap::AutoConfForPad(popup->GetChoiceString()); }