13
0

fix latency-measurement dialog back-button.

This commit is contained in:
Robin Gareus 2014-06-22 18:21:10 +02:00
parent 16ffff10cd
commit 3624d93001

View File

@ -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 (_("<span weight=\"bold\">Turn down the volume on your audio equipment to a very low level.</span>"));
}
@ -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