This commit is contained in:
Henrik Rydgard 2013-08-15 22:43:42 +02:00
parent 612dd6abed
commit 1353a9d73d

View File

@ -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;
}