fix logic bomb
This commit is contained in:
parent
42983959d2
commit
04d86ebd8d
@ -851,13 +851,11 @@ AUPluginUI::parent_cocoa_window ()
|
|||||||
|
|
||||||
resizable = false;
|
resizable = false;
|
||||||
|
|
||||||
if (!toplevel || !toplevel->is_toplevel()) {
|
if (toplevel && toplevel->is_toplevel()) {
|
||||||
error << _("AUPluginUI: no top level window!") << endmsg;
|
|
||||||
}
|
|
||||||
|
|
||||||
toplevel->size_request (req);
|
toplevel->size_request (req);
|
||||||
toplevel->set_size_request (req.width, req.height);
|
toplevel->set_size_request (req.width, req.height);
|
||||||
dynamic_cast<Gtk::Window*>(toplevel)->set_resizable (false);
|
dynamic_cast<Gtk::Window*>(toplevel)->set_resizable (false);
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user