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

@ -983,7 +983,7 @@ Editor::set_entered_track (TimeAxisView* tav)
void
Editor::instant_save ()
{
if (!constructed || !ARDOUR_UI::instance()->session_loaded || no_save_instant) {
if (!constructed || no_save_instant) {
return;
}