X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=blobdiff_plain;f=gtk2_ardour%2Feditor.cc;h=07aa7df46ca3da6918f005862e7e44207f685c59;hp=b0b58d6c7f18efd676f7770a84bd8d5d4c6656ac;hb=d864f42d2097f3aad3bdd7b00bdb093a4ffb4cb5;hpb=4dc65e6613a375a836de4dd9901ac50a4ab43be6 diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index b0b58d6c7f..07aa7df46c 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -983,15 +983,11 @@ Editor::set_entered_track (TimeAxisView* tav) void Editor::instant_save () { - if (!constructed || no_save_instant) { + if (!constructed || !_session || no_save_instant) { return; } - if (_session) { - _session->add_instant_xml(get_state()); - } else { - Config->add_instant_xml(get_state()); - } + _session->add_instant_xml(get_state()); } void