mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
Potential fix for AU window close crash.
This commit is contained in:
parent
a27e5e6cb8
commit
c94d352f56
2 changed files with 12 additions and 6 deletions
|
|
@ -89,9 +89,12 @@ void
|
|||
ArdourDialog::on_unmap ()
|
||||
{
|
||||
if (Keyboard::some_magic_widget_has_focus()) {
|
||||
Gtk::Window* win = static_cast<Gtk::Window*>(get_focus()->get_toplevel());
|
||||
if (win == Keyboard::get_current_window()) {
|
||||
Keyboard::magic_widget_drop_focus ();
|
||||
Gtk::Widget* widget = get_focus();
|
||||
if (widget) {
|
||||
Gtk::Window* win = static_cast<Gtk::Window*>(get_focus()->get_toplevel());
|
||||
if (win == Keyboard::get_current_window()) {
|
||||
Keyboard::magic_widget_drop_focus ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue