summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-04-20 18:55:14 +0200
committerRobin Gareus <robin@gareus.org>2014-04-20 18:55:14 +0200
commit5a3a8fc8f2f46d43cb705a79f15976bb1ba883e0 (patch)
treed50a16d0fcd4ebe53dfa9da1a0ea0f2e4d6b5f2f /libs
parent3552c17b918c9d7d4a6cf356e7914dd2c8e40e81 (diff)
fix issue with duplicate entry in "Recent" menu after re-naming a session
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/session_state.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index cffdae9d15..07f10e9bc1 100644
--- a/libs/ardour/session_state.cc
+++ b/libs/ardour/session_state.cc
@@ -3744,6 +3744,11 @@ Session::rename (const std::string& new_name)
_current_snapshot_name = new_name;
_name = new_name;
+ /* re-add directory separator - reverse hack to oldstr above */
+ if (_path[_path.length()-1] != G_DIR_SEPARATOR) {
+ _path += G_DIR_SEPARATOR;
+ }
+
set_dirty ();
/* save state again to get everything just right */