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:
parent
acc595ba16
commit
fd3e60be54
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue