fix crash at exit, ctrl+s during quit.
authorRobin Gareus <robin@gareus.org>
Sat, 19 Sep 2015 16:32:23 +0000 (18:32 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 19 Sep 2015 17:00:43 +0000 (19:00 +0200)
gtk2_ardour/ardour_ui.cc

index 22c69029daddee016732dbe46a75d663dbc5be1e..d13a3a2ad5517cfdb1d3333f9631ce3c4af07cf9 100644 (file)
@@ -2575,6 +2575,10 @@ ARDOUR_UI::rename_session ()
 void
 ARDOUR_UI::save_state (const string & name, bool switch_to_it)
 {
+       if (!_session || _session->deletion_in_progress()) {
+               return;
+       }
+
        XMLNode* node = new XMLNode (X_("UI"));
 
        WM::Manager::instance().add_state (*node);