don't set _is_new=false too early when creating a new session

git-svn-id: svn://localhost/ardour2/branches/3.0@6788 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-03-23 17:58:40 +00:00
parent eb6ae56faf
commit f11a5e1769
2 changed files with 2 additions and 1 deletions

View File

@ -196,6 +196,8 @@ Session::Session (AudioEngine &eng,
if (was_dirty) {
DirtyChanged (); /* EMIT SIGNAL */
}
_is_new = false;
}
Session::~Session ()

View 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 */