mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-05 05:05:43 +01:00
fix issue with duplicate entry in "Recent" menu after re-naming a session
This commit is contained in:
parent
4566975a5d
commit
d78aa7a032
1 changed files with 5 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue