fix logic (and possible segfault if !editor)

This commit is contained in:
Robin Gareus 2014-11-17 03:28:33 +01:00
parent 4a17f9e941
commit 47f4005dbc

View File

@ -2280,7 +2280,7 @@ ARDOUR_UI::map_transport_state ()
void
ARDOUR_UI::update_clocks ()
{
if (!editor || !editor->dragging_playhead()) {
if (editor && !editor->dragging_playhead()) {
Clock (_session->audible_frame(), false, editor->get_preferred_edit_position()); /* EMIT_SIGNAL */
}
}