diff options
author | Robin Gareus <robin@gareus.org> | 2017-02-18 01:25:13 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-02-18 01:25:13 +0100 |
commit | c8d6ddfd10db825e10ba40567dfc854b545f9cec (patch) | |
tree | fd835264c8f79568db5e82978a4fc4ab08c9fd05 /gtk2_ardour/editor_selection.cc | |
parent | 85e3d2158e53df7450e56cbef3d2b3b3aebeb59b (diff) |
Don't scroll-jump when selecting all tracks
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-rw-r--r-- | gtk2_ardour/editor_selection.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index 42111c5ffa..d214d48a32 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -21,6 +21,7 @@ #include <cstdlib> #include "pbd/stacktrace.h" +#include "pbd/unwind.h" #include "ardour/midi_region.h" #include "ardour/playlist.h" @@ -174,6 +175,7 @@ Editor::select_all_tracks () visible_views.push_back (*i); } } + PBD::Unwinder<bool> uw (_track_selection_change_without_scroll, true); selection->set (visible_views); } @@ -966,7 +968,9 @@ Editor::track_selection_changed () * selected, because we always append to that list. */ set_selected_mixer_strip (*(selection->tracks.back())); - ensure_time_axis_view_is_visible (*(selection->tracks.back()), false); + if (!_track_selection_change_without_scroll) { + ensure_time_axis_view_is_visible (*(selection->tracks.back()), false); + } break; } |