Make object_dialog_handler return window_event_result::close instead of closing itself

This ensures the event system will know what's going on.
This commit is contained in:
Chris Taylor 2016-10-27 17:52:50 +08:00
parent acc595ba16
commit fd3e60be54

View file

@ -850,8 +850,7 @@ static window_event_result object_dialog_handler(UI_DIALOG *dlg,const d_event &e
obj->mtype.spin_rate.y = fl2f(atof(o->ytext->text.get()));
obj->mtype.spin_rate.z = fl2f(atof(o->ztext->text.get()));
object_close_window();
return window_event_result::handled;
return window_event_result::close;
}
return rval;