From d9877d5c99a3700632e538e0f103f30be394ff80 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 15 Jul 2021 09:03:09 -0600 Subject: [PATCH] prevent add-location-at-playhead-cursor etc. from adding multiple marks at the same location --- gtk2_ardour/editor_ops.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index f9018b29c8..4e754dc594 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -2248,6 +2248,10 @@ Editor::add_location_from_selection () void Editor::add_location_mark (samplepos_t where) { + if (_session->locations()->mark_at (where, 1)) { + return; + } + string markername; select_new_marker = true;