Prefer testing the session instead of using a global variable

This commit is contained in:
Robin Gareus 2018-12-06 02:23:53 +01:00
parent bf874562ef
commit 4dc65e6613
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
5 changed files with 4 additions and 14 deletions

View file

@ -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 ();