diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-07-18 17:08:50 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-07-18 17:08:50 +0000 |
commit | 34c05a7903e87a2b5d83d36b8af783499d3ce682 (patch) | |
tree | e71d2187e1471fdcf7cfd4df8587da9250297e07 /libs/ardour/session_state.cc | |
parent | 5d8cf171212cb2de6e82ca329f8d19313fa7db07 (diff) |
when renaming, remove old session and add new session name from/to recent sessions list
git-svn-id: svn://localhost/ardour2/branches/3.0@9894 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 0973e294c5..1b8c7c0ba0 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -100,6 +100,7 @@ #include "ardour/processor.h" #include "ardour/port.h" #include "ardour/proxy_controllable.h" +#include "ardour/recent_sessions.h" #include "ardour/region_factory.h" #include "ardour/route_group.h" #include "ardour/send.h" @@ -3787,6 +3788,10 @@ Session::rename (const std::string& new_name) } } + /* remove old name from recent sessions */ + + remove_recent_sessions (_path); + _path = newpath; _current_snapshot_name = new_name; _name = new_name; @@ -3797,6 +3802,11 @@ Session::rename (const std::string& new_name) save_state (_current_snapshot_name); + + /* add to recent sessions */ + + store_recent_sessions (new_name, _path); + return 0; #undef RENAME |