mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
Catch another windows no-top-level issue
GTK+ on windows is weird on occasion :)
This commit is contained in:
parent
4b30239275
commit
68d910d58c
5 changed files with 32 additions and 4 deletions
|
|
@ -3984,8 +3984,11 @@ ProcessorBox::get_editor_window (std::shared_ptr<Processor> processor, bool use_
|
|||
|
||||
if (std::dynamic_pointer_cast<InternalSend> (processor) == 0) {
|
||||
Gtk::Window* tlw = dynamic_cast<Gtk::Window*> (get_toplevel ());
|
||||
assert (tlw);
|
||||
gidget = new SendUIWindow (*tlw, _session, send);
|
||||
if (tlw) {
|
||||
gidget = new SendUIWindow (*tlw, _session, send);
|
||||
} else {
|
||||
gidget = new SendUIWindow (_session, send);
|
||||
}
|
||||
}
|
||||
|
||||
} else if ((retrn = std::dynamic_pointer_cast<Return> (processor)) != 0) {
|
||||
|
|
@ -4047,8 +4050,11 @@ ProcessorBox::get_editor_window (std::shared_ptr<Processor> processor, bool use_
|
|||
|
||||
if (w == 0) {
|
||||
Gtk::Window* tlw = dynamic_cast<Gtk::Window*> (get_toplevel ());
|
||||
assert (tlw);
|
||||
io_selector = new PortInsertWindow (*tlw, _session, port_insert);
|
||||
if (tlw) {
|
||||
io_selector = new PortInsertWindow (*tlw, _session, port_insert);
|
||||
} else {
|
||||
io_selector = new PortInsertWindow (_session, port_insert);
|
||||
}
|
||||
set_processor_ui (port_insert, io_selector);
|
||||
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue