Locations::clear_ranges() leaves punch/loop/session ranges intact if they exist
This commit is contained in:
parent
f415e24514
commit
73f2baf5c6
@ -766,6 +766,17 @@ Locations::clear_ranges ()
|
|||||||
tmp = i;
|
tmp = i;
|
||||||
++tmp;
|
++tmp;
|
||||||
|
|
||||||
|
/* We do not remove these ranges as part of this
|
||||||
|
* operation
|
||||||
|
*/
|
||||||
|
|
||||||
|
if ((*i)->is_auto_punch() ||
|
||||||
|
(*i)->is_auto_loop() ||
|
||||||
|
(*i)->is_session_range()) {
|
||||||
|
i = tmp;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (!(*i)->is_mark()) {
|
if (!(*i)->is_mark()) {
|
||||||
delete *i;
|
delete *i;
|
||||||
locations.erase (i);
|
locations.erase (i);
|
||||||
|
Loading…
Reference in New Issue
Block a user