diff options
author | Robin Gareus <robin@gareus.org> | 2014-11-17 03:28:33 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-11-17 03:28:33 +0100 |
commit | 47f4005dbc7f9f8074dd18c806bcd621a38ae277 (patch) | |
tree | bd49961aca84705304a40241f624254d0c548e59 /gtk2_ardour | |
parent | 4a17f9e941271871173e8b25b519ff5fd9068fb8 (diff) |
fix logic (and possible segfault if !editor)
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 03ca13745f..ac35e0db79 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -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 */ } } |