don't set _is_new=false too early when creating a new session
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 23 Mar 2010 17:58:40 +0000 (17:58 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 23 Mar 2010 17:58:40 +0000 (17:58 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@6788 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/session.cc
libs/ardour/session_state.cc

index e071cf06e9353b49e58bdfebb5adefcc1b0972ac..398c1259354518a18ba84a8474ada4e04e0f5a56 100644 (file)
@@ -196,6 +196,8 @@ Session::Session (AudioEngine &eng,
        if (was_dirty) {
                DirtyChanged (); /* EMIT SIGNAL */
        }
+
+        _is_new = false;
 }
 
 Session::~Session ()
index 9e7a652f5137117a51682f1016d740fcbe00a637..e5e75d6550939352e56319dcab47614f377e1f96 100644 (file)
@@ -794,7 +794,6 @@ Session::save_state (string snapshot_name, bool pending)
                bool was_dirty = dirty();
 
                _state_of_the_state = StateOfTheState (_state_of_the_state & ~Dirty);
-                _is_new = false;
 
                if (was_dirty) {
                        DirtyChanged (); /* EMIT SIGNAL */