diff options
author | Robin Gareus <robin@gareus.org> | 2018-10-05 21:48:41 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-10-05 21:50:55 +0200 |
commit | 16dc3a1613709c7c3e57d5a2f9e5d4834280ee77 (patch) | |
tree | cdd34f26d8482156cdaa976056940efe550f6139 | |
parent | 32b73439275dbe2cccaa2a71026a951ea46d24b9 (diff) |
Properly disable looping when deleting loop-range
-rw-r--r-- | libs/ardour/session.cc | 5 | ||||
-rw-r--r-- | libs/ardour/session_transport.cc | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 654234c515..f8fc5639f7 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -1955,7 +1955,10 @@ Session::location_removed (Location *location) { if (location->is_auto_loop()) { set_auto_loop_location (0); - set_track_loop (false); + if (!play_loop) { + set_track_loop (false); + } + unset_play_loop (); } if (location->is_auto_punch()) { diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index b87a77c417..99ce3e46ed 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -1000,6 +1000,7 @@ Session::unset_play_loop () add_post_transport_work (PostTransportLocate); _butler->schedule_transport_work (); } + TransportStateChange (); /* EMIT SIGNAL */ } } |