From 207fa93cf948cc2b9d92e50ef15707611a858d6a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 7 Jun 2016 18:28:32 -0400 Subject: when destroying an ArdourDialog, be sure the Keyboard object knows about it. It seems that there are ways to destroy a window without it emitting focus out --- gtk2_ardour/ardour_dialog.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/ardour_dialog.cc b/gtk2_ardour/ardour_dialog.cc index f8071c2e62..89b9914120 100644 --- a/gtk2_ardour/ardour_dialog.cc +++ b/gtk2_ardour/ardour_dialog.cc @@ -60,7 +60,8 @@ ArdourDialog::~ArdourDialog () spl->pop_front(); } } - WM::Manager::instance().remove (proxy); + Keyboard::the_keyboard().focus_out_window (0, this); + WM::Manager::instance().remove (proxy); } bool -- cgit v1.2.3