diff --git a/ui/ui_screen.cpp b/ui/ui_screen.cpp index 5b669b993b..6dc9a7c9a1 100644 --- a/ui/ui_screen.cpp +++ b/ui/ui_screen.cpp @@ -155,8 +155,10 @@ void ListPopupScreen::CreatePopupContents(UI::ViewGroup *parent) { UI::EventReturn ListPopupScreen::OnListChoice(UI::EventParams &e) { adaptor_.SetSelected(e.a); - callback_(adaptor_.GetSelected()); + if (callback_) + callback_(adaptor_.GetSelected()); screenManager()->finishDialog(this, DR_OK); + OnCompleted(); OnChoice.Dispatch(e); return UI::EVENT_DONE; }