Rect fix
[ardour.git] / libs / ardour / session.cc
index 6fd53abd02e96036497f0d8d996069ebcfd09137..4a0d8203811317fc8ea4eeb130beda00d435a75b 100644 (file)
@@ -1007,7 +1007,7 @@ Session::auto_punch_start_changed (Location* location)
        if (get_record_enabled() && get_punch_in()) {
                /* capture start has been changed, so save new pending state */
                save_state ("", true);
-                save_history();
+                save_history("");
        }
 }      
 
@@ -1325,7 +1325,7 @@ Session::maybe_enable_record ()
        */
 
        save_state ("", true);
-        save_history();
+        save_history ("");
 
        if (_transport_speed) {
                if (!punch_in) {
@@ -1889,6 +1889,7 @@ Session::add_route (shared_ptr<Route> route)
 
        set_dirty();
        save_state (_current_snapshot_name);
+       save_history (_current_snapshot_name);
 
        RouteAdded (route); /* EMIT SIGNAL */
 }
@@ -1920,7 +1921,7 @@ Session::add_diskstream (Diskstream* dstream)
 
        set_dirty();
        save_state (_current_snapshot_name);
-        save_history();
+        save_history (_current_snapshot_name);
 
        DiskstreamAdded (dstream); /* EMIT SIGNAL */
 }
@@ -1985,6 +1986,7 @@ Session::remove_route (shared_ptr<Route> route)
        /* XXX should we disconnect from the Route's signals ? */
 
        save_state (_current_snapshot_name);
+       save_history (_current_snapshot_name);
 
        /* all shared ptrs to route should go out of scope here */
 }      
@@ -2673,7 +2675,7 @@ Session::remove_source (Source* source)
                */
                
                save_state (_current_snapshot_name);
-                save_history();
+                save_history (_current_snapshot_name);
        }
 
        SourceRemoved(source); /* EMIT SIGNAL */