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:
parent
35ab39bd93
commit
acddc9bc7a
@ -122,6 +122,9 @@ Selection::clear_regions ()
|
|||||||
if (!regions.empty()) {
|
if (!regions.empty()) {
|
||||||
regions.clear_all ();
|
regions.clear_all ();
|
||||||
RegionsChanged();
|
RegionsChanged();
|
||||||
|
if (Config->get_link_region_and_track_selection()) {
|
||||||
|
clear_tracks ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -733,7 +736,10 @@ void
|
|||||||
Selection::set (RegionView* r, bool also_clear_tracks)
|
Selection::set (RegionView* r, bool also_clear_tracks)
|
||||||
{
|
{
|
||||||
clear_regions ();
|
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 ();
|
clear_tracks ();
|
||||||
}
|
}
|
||||||
add (r);
|
add (r);
|
||||||
|
Loading…
Reference in New Issue
Block a user