mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Prefer testing the session instead of using a global variable
This commit is contained in:
parent
bf874562ef
commit
4dc65e6613
5 changed files with 4 additions and 14 deletions
|
|
@ -337,10 +337,9 @@ ARDOUR_UI::unload_session (bool hide_stuff)
|
|||
|
||||
blink_connection.disconnect ();
|
||||
|
||||
delete _session;
|
||||
ARDOUR::Session* session_to_delete = _session;
|
||||
_session = 0;
|
||||
|
||||
session_loaded = false;
|
||||
delete session_to_delete;
|
||||
|
||||
update_title ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue