Remove ifstream / ofstream when accessing session template files (or creating a new...
[ardour.git] / libs / ardour / location.cc
index 9d7e7c3e57811b1d997c3e9f2b913613b7d2c598..4482876973bd74d54866adb0f6f0d90f5b2aaee6 100644 (file)
@@ -104,6 +104,7 @@ Location::Location (const Location& other)
 
 Location::Location (Session& s, const XMLNode& node)
        : SessionHandleRef (s)
+       , _flags (Flags (0))
        , _position_lock_style (AudioTime)
 {
        /* Note: _position_lock_style is initialised above in case set_state doesn't set it
@@ -761,6 +762,7 @@ Location::set_scene_change (boost::shared_ptr<SceneChange>  sc)
 {
         if (_scene_change != sc) {
                 _scene_change = sc;
+                _session.set_dirty ();
                 
                 scene_changed (); /* EMIT SIGNAL */
                 SceneChangeChanged (); /* EMIT SIGNAL */