fix [potential] double clock connection:

ARDOUR_UI::set_session() starts clocking for a given session.
make sure ARDOUR_UI::parameter_changed() does not connect
before the session is active.
This commit is contained in:
Robin Gareus 2014-08-31 07:54:59 +02:00 committed by Paul Davis
parent 0eeab54ad5
commit 05afeb03f7

View file

@ -398,8 +398,10 @@ ARDOUR_UI::parameter_changed (std::string p)
secondary_clock->set_widget_name ("secondary");
}
} else if (p == "super-rapid-clock-update") {
stop_clocking ();
start_clocking ();
if (_session) {
stop_clocking ();
start_clocking ();
}
} else if (p == "waveform-gradient-depth") {
ArdourCanvas::WaveView::set_global_gradient_depth (config()->get_waveform_gradient_depth());
} else if (p == "show-editor-meter") {