13
0

fix minor logic error with linked region & track selections

git-svn-id: svn://localhost/ardour2/branches/3.0@10905 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-12-05 18:33:20 +00:00
parent 35ab39bd93
commit acddc9bc7a

View File

@ -122,6 +122,9 @@ Selection::clear_regions ()
if (!regions.empty()) {
regions.clear_all ();
RegionsChanged();
if (Config->get_link_region_and_track_selection()) {
clear_tracks ();
}
}
}
@ -733,7 +736,10 @@ void
Selection::set (RegionView* r, bool also_clear_tracks)
{
clear_regions ();
if (also_clear_tracks) {
if (also_clear_tracks && !Config->get_link_region_and_track_selection()) {
/* clear_regions() will have done this if the link preference
* is enabled
*/
clear_tracks ();
}
add (r);