Fix editor sizing issue introduced in 4dc65e66
[ardour.git] / gtk2_ardour / editor.cc
index b0b58d6c7f18efd676f7770a84bd8d5d4c6656ac..07aa7df46ca3da6918f005862e7e44207f685c59 100644 (file)
@@ -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