diff options
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 |