a-fluidsynth: implement LV2_BANKPATCH__notify
[ardour.git] / gtk2_ardour / ardour_dialog.cc
index 0287d8c48b3b88f1c4e24b826dc0d7604782e638..1c9da0112f1439bf4e50e737fab033607f0a52d2 100644 (file)
@@ -63,9 +63,21 @@ ArdourDialog::on_response (int response_id)
 {
        pop_splash ();
        hide ();
+       ARDOUR::GUIIdle ();
        Gtk::Dialog::on_response (response_id);
 }
 
+void
+ArdourDialog::close_self ()
+{
+       /* Don't call Idle, don't pop splash.
+        * This is used at exit and session-close and invoked
+        * via close_all_dialogs.
+        */
+       hide ();
+       Gtk::Dialog::on_response (RESPONSE_CANCEL);
+}
+
 void
 ArdourDialog::pop_splash ()
 {
@@ -137,7 +149,7 @@ ArdourDialog::init ()
                set_transient_for (*parent);
        }
 
-       ARDOUR_UI::CloseAllDialogs.connect (sigc::bind (sigc::mem_fun (*this, &ArdourDialog::response), RESPONSE_CANCEL));
+       ARDOUR_UI::CloseAllDialogs.connect (sigc::mem_fun (*this, &ArdourDialog::close_self)); /* send a RESPONSE_CANCEL to self */
 
        proxy = new WM::ProxyTemporary (get_title(), this);
        WM::Manager::instance().register_window (proxy);