mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
catch a potential segfault (unload session)
This commit is contained in:
parent
ed74299e1e
commit
7409d5f224
1 changed files with 5 additions and 1 deletions
|
|
@ -2123,9 +2123,13 @@ ARDOUR_UI::toggle_roll (bool with_abort, bool roll_out_of_bounded_mode)
|
|||
void
|
||||
ARDOUR_UI::toggle_session_auto_loop ()
|
||||
{
|
||||
if (!_session) {
|
||||
return;
|
||||
}
|
||||
|
||||
Location * looploc = _session->locations()->auto_loop_location();
|
||||
|
||||
if (!_session || !looploc) {
|
||||
if (!looploc) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue