From 1ebf35f13719df3f0565d75304fe778f443d8665 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 27 Apr 2017 21:10:37 +0200 Subject: [PATCH] Allow to hide engine dialog w/o unloading session. --- gtk2_ardour/ardour_ui.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index e8c794f85e..32a6d9f1f6 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -5397,10 +5397,16 @@ ARDOUR_UI::do_audio_midi_setup (uint32_t desired_sample_rate) while (true) { int response = audio_midi_setup->run(); - printf("RESPONSE %d\n", response); switch (response) { case Gtk::RESPONSE_DELETE_EVENT: - return -1; + // after latency callibration engine may run, + // Running() signal was emitted, but dialog will not + // have emitted a response. The user needs to close + // the dialog -> Gtk::RESPONSE_DELETE_EVENT + if (!AudioEngine::instance()->running()) { + return -1; + } + // fall through default: if (!AudioEngine::instance()->running()) { continue;