mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
make a possible case in a switch statement explicit
This commit is contained in:
parent
c573cc9153
commit
f21c948f35
1 changed files with 4 additions and 0 deletions
|
|
@ -319,11 +319,15 @@ ARDOUR_UI::unload_session (bool hide_stuff)
|
|||
// cancel
|
||||
return 1;
|
||||
case 1:
|
||||
// save and continue (and handle unnamed sessions)
|
||||
if (_session->unnamed()) {
|
||||
rename_session (true);
|
||||
}
|
||||
_session->save_state ("");
|
||||
break;
|
||||
case 0:
|
||||
// discard/don't save
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue