Problem is here:
> UI::WLMessageBox mmb(d->modal, _("Disconnected from Host"), msg, UI::WLMessageBox::MBoxType::kOk);
But this Messagebox has no parent, this makes this code fail:
void Window::center_to_parent() { Panel& parent = *get_parent();
set_pos(Vector2i((static_cast<int32_t>(parent.get_inner_w()) - get_w()) / 2, (static_cast<int32_t>(parent.get_inner_h()) - get_h()) / 2)); }
Since when do we do this?
Problem is here:
> UI::WLMessageBox mmb(d->modal, _("Disconnected from Host"), msg, UI::WLMessageBo x::MBoxType: :kOk);
But this Messagebox has no parent, this makes this code fail:
void Window: :center_ to_parent( ) {
Panel& parent = *get_parent();
set_pos( Vector2i( (static_ cast<int32_ t>(parent. get_inner_ w()) - get_w()) / 2,
(static_ cast<int32_ t>(parent. get_inner_ h()) - get_h()) / 2));
}
Since when do we do this?