diff options
author | Robin Gareus <robin@gareus.org> | 2014-08-31 07:54:59 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-08-31 07:54:59 +0200 |
commit | 059e438f401e9c54f87c55743ab81c79c8982821 (patch) | |
tree | 91c718a5e1aa69c02373dbc9995792ff43ff04ce /gtk2_ardour/ardour_ui_options.cc | |
parent | 7d3f0bfd7507dde66cf7c041883a9c1b21f898b9 (diff) |
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.
Diffstat (limited to 'gtk2_ardour/ardour_ui_options.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_options.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk2_ardour/ardour_ui_options.cc b/gtk2_ardour/ardour_ui_options.cc index a8be3ccd0c..f0ec519775 100644 --- a/gtk2_ardour/ardour_ui_options.cc +++ b/gtk2_ardour/ardour_ui_options.cc @@ -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") { |