From cc603c2dafae5585c0d0339675fa09bf766bcb55 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 20 Dec 2006 21:54:39 +0000 Subject: missing template dir patch from tim, fix extend selection to track when track is already selected git-svn-id: svn://localhost/ardour2/trunk@1237 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gtk2_ardour/editor.cc') diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 37fc8ccdc7..95fa048f03 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -2871,6 +2871,11 @@ struct TrackViewByPositionSorter bool Editor::extend_selection_to_track (TimeAxisView& view) { + if (selection->selected (&view)) { + /* already selected, do nothing */ + return false; + } + if (selection->tracks.empty()) { if (!selection->selected (&view)) { -- cgit v1.2.3