fix prev commit SaveSession() signal was sent too late.
authorRobin Gareus <robin@gareus.org>
Mon, 8 Apr 2013 18:52:33 +0000 (20:52 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 8 Apr 2013 18:52:33 +0000 (20:52 +0200)
libs/ardour/session_state.cc

index 4ce39340a337a195ea21bcd4c8db26b1fc41d5b7..9a82192175ae4e64f19f493dcd1c109d68527094 100644 (file)
@@ -772,6 +772,8 @@ Session::save_state (string snapshot_name, bool pending, bool switch_to_snapshot
                }
        }
 
+       SaveSession (); /* EMIT SIGNAL */
+
        tree.set_root (&get_state());
 
        if (snapshot_name.empty()) {
@@ -827,8 +829,6 @@ Session::save_state (string snapshot_name, bool pending, bool switch_to_snapshot
 
        if (!pending) {
 
-               SaveSession (); /* EMIT SIGNAL */
-
                save_history (snapshot_name);
 
                bool was_dirty = dirty();