fix issue with duplicate entry in "Recent" menu after re-naming a session
This commit is contained in:
parent
3552c17b91
commit
5a3a8fc8f2
@ -3744,6 +3744,11 @@ Session::rename (const std::string& new_name)
|
|||||||
_current_snapshot_name = new_name;
|
_current_snapshot_name = new_name;
|
||||||
_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 ();
|
set_dirty ();
|
||||||
|
|
||||||
/* save state again to get everything just right */
|
/* save state again to get everything just right */
|
||||||
|
Loading…
Reference in New Issue
Block a user