From 0e9dab6aabc2efddc957c7c71bc55354c16626ed Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 24 Aug 2017 23:41:21 +0200 Subject: Allow to send immediate PC messages without closing the dialog. Perhaps every change should trigger a PC (without "Apply") button?! --- gtk2_ardour/patch_change_dialog.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour/patch_change_dialog.h') diff --git a/gtk2_ardour/patch_change_dialog.h b/gtk2_ardour/patch_change_dialog.h index 65b107c8a5..0390ecfffa 100644 --- a/gtk2_ardour/patch_change_dialog.h +++ b/gtk2_ardour/patch_change_dialog.h @@ -46,11 +46,15 @@ public: Evoral::PatchChange const &, ARDOUR::InstrumentInfo&, const Gtk::BuiltinStockID &, - bool allow_delete = false + bool allow_delete = false, + bool modal = true ); Evoral::PatchChange patch () const; +protected: + void on_response (int); + private: void fill_bank_combo (); void set_active_bank_combo (); @@ -76,6 +80,7 @@ private: boost::shared_ptr _current_patch_bank; bool _ignore_signals; + bool _keep_open; void instrument_info_changed (); PBD::ScopedConnection _info_changed_connection; -- cgit v1.2.3