From 3624d930014b508502bd0101f2f36915b0d918db Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 22 Jun 2014 18:21:10 +0200 Subject: [PATCH] fix latency-measurement dialog back-button. --- gtk2_ardour/engine_dialog.cc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/gtk2_ardour/engine_dialog.cc b/gtk2_ardour/engine_dialog.cc index dea6f8cb1b..8041dd6843 100644 --- a/gtk2_ardour/engine_dialog.cc +++ b/gtk2_ardour/engine_dialog.cc @@ -544,9 +544,12 @@ EngineControl::enable_latency_tab () return; } + lm_back_button_signal.disconnect(); if (_measure_midi) { + lm_back_button_signal = lm_back_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (notebook, &Gtk::Notebook::set_current_page), midi_tab)); lm_preamble.set_markup (_("")); } else { + lm_back_button_signal = lm_back_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (notebook, &Gtk::Notebook::set_current_page), 0)); lm_preamble.set_markup (_("Turn down the volume on your audio equipment to a very low level.")); } @@ -1955,13 +1958,6 @@ EngineControl::start_latency_detection () lm_output_channel_combo.set_sensitive (false); lm_running = true; } - - lm_back_button_signal.disconnect(); - if (_measure_midi) { - lm_back_button_signal = lm_back_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (notebook, &Gtk::Notebook::set_current_page), midi_tab)); - } else { - lm_back_button_signal = lm_back_button.signal_clicked().connect (sigc::bind (sigc::mem_fun (notebook, &Gtk::Notebook::set_current_page), 0)); - } } void