From d78aa7a03233a3ca2651d0e4bb60651c00c39f86 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 20 Apr 2014 18:55:14 +0200 Subject: [PATCH] fix issue with duplicate entry in "Recent" menu after re-naming a session --- libs/ardour/session_state.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 4312260dd4..e2e27f38e0 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -3768,6 +3768,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 */