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
parent 7d3f0bfd75
commit 059e438f40

View File

@ -392,8 +392,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") {