From 8710a2d9432469909eb51d0644f2f25133240dbb Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 27 Feb 2020 23:27:42 +0100 Subject: Dialog default to cancel (#7915) There are various ways to cancel a dialog. Only checking for RESPONSE_CANCEL is not sufficient. e.g. Esc causes a delete-event. * Gtk::RESPONSE_CLOSE * Gtk::RESPONSE_REJECT * Gtk::RESPONSE_DELETE_EVENT * Gtk::RESPONSE_CANCEL * Gtk::RESPONSE_NO Among others this fixes "Clicking session > open, then hitting ESC opens the currently selected folder and session" --- gtk2_ardour/processor_box.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'gtk2_ardour/processor_box.cc') diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index 9eed52b889..8abd1e5d18 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -349,6 +349,7 @@ ProcessorEntry::drag_data_get (Glib::RefPtr const, Gtk::Select _plugin_preset_pointer->_preset.valid = false; switch (d.run ()) { + default: case Gtk::RESPONSE_CANCEL: data.set (data.get_target(), 8, NULL, 0); return true; -- cgit v1.2.3