From cb9c347bd0d892f4250462d495eb5c845b73652c Mon Sep 17 00:00:00 2001 From: Nikolay Date: Mon, 26 Jan 2015 17:56:25 +0200 Subject: [PATCH] [Summary] Force WavesDialog hide itself in on_response(). Fixed bugs #44333, #45169. [Feature reviewed] MKosharnyy [Reviewed] VKamyshniy --- gtk2_ardour/waves_dialog.cc | 6 ++++++ gtk2_ardour/waves_dialog.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/gtk2_ardour/waves_dialog.cc b/gtk2_ardour/waves_dialog.cc index d120bf7393..f03c681525 100644 --- a/gtk2_ardour/waves_dialog.cc +++ b/gtk2_ardour/waves_dialog.cc @@ -147,3 +147,9 @@ WavesDialog::on_delete_event (GdkEventAny*) hide (); return false; } + +void +WavesDialog::on_response(int response_id) +{ + hide (); +} diff --git a/gtk2_ardour/waves_dialog.h b/gtk2_ardour/waves_dialog.h index 40941670e0..d09767b36b 100644 --- a/gtk2_ardour/waves_dialog.h +++ b/gtk2_ardour/waves_dialog.h @@ -51,6 +51,7 @@ class WavesDialog : public Gtk::Dialog, public ARDOUR::SessionHandlePtr, public bool on_key_press_event (GdkEventKey*); void on_show (); bool on_delete_event (GdkEventAny*); + enum { // We need one smaller then smallest Gtk::RESPONSE_* @@ -58,6 +59,7 @@ class WavesDialog : public Gtk::Dialog, public ARDOUR::SessionHandlePtr, public }; protected: + void on_response(int response_id); private: