mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
fix "Loop Range" in marker context menu
This commit is contained in:
parent
eaf88040cc
commit
1ceb153037
1 changed files with 5 additions and 1 deletions
|
|
@ -1352,11 +1352,15 @@ Editor::marker_menu_loop_range ()
|
||||||
Location* l;
|
Location* l;
|
||||||
bool is_start;
|
bool is_start;
|
||||||
|
|
||||||
|
cerr << "look for location from marker " << marker << endl;
|
||||||
|
|
||||||
if ((l = find_location_from_marker (marker, is_start)) != 0) {
|
if ((l = find_location_from_marker (marker, is_start)) != 0) {
|
||||||
if (l != transport_loop_location()) {
|
if (l != transport_loop_location()) {
|
||||||
|
cerr << "Set loop\n";
|
||||||
set_loop_range (l->start(), l->end(), _("loop range from marker"));
|
set_loop_range (l->start(), l->end(), _("loop range from marker"));
|
||||||
|
} else {
|
||||||
|
cerr << " at TL\n";
|
||||||
}
|
}
|
||||||
_session->request_locate (l->start(), MustRoll);
|
|
||||||
_session->request_play_loop (true);
|
_session->request_play_loop (true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue