summaryrefslogtreecommitdiff
path: root/libs/ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-05-19 18:28:21 +0200
committerRobin Gareus <robin@gareus.org>2020-05-19 18:31:52 +0200
commit272d095af6b930169d84cbe50e23a4ec48b9ee0b (patch)
treeb5c2dbf35caafe75d090b83ee5b622234f8e7ef7 /libs/ardour
parent7476e924038ffdde934d267221dc18215d4cc2bd (diff)
Don't save when renaming a track
Filenames used by the disk-reader only change when recording which creates a pending save. There's generally no reason to force save the session due to renaming a track.
Diffstat (limited to 'libs/ardour')
-rw-r--r--libs/ardour/track.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc
index 981857f21e..b546ff9f6c 100644
--- a/libs/ardour/track.cc
+++ b/libs/ardour/track.cc
@@ -369,8 +369,6 @@ Track::resync_track_name ()
bool
Track::set_name (const string& str)
{
- bool ret;
-
if (str.empty ()) {
return false;
}
@@ -423,8 +421,7 @@ Track::set_name (const string& str)
}
}
- /* When creating a track during session-load,
- * do not change playlist's name, nor try to save the session.
+ /* When creating a track during session-load, do not change playlist's name.
*
* Changing the playlist name from 'toBeResetFroXML' breaks loading
* Ardour v2..5 sessions. Older versions of Arodur identified playlist
@@ -441,13 +438,7 @@ Track::set_name (const string& str)
}
}
- /* save state so that the statefile fully reflects any filename changes */
-
- if ((ret = Route::set_name (str)) == 0) {
- _session.save_state ();
- }
-
- return ret;
+ return Route::set_name (str);
}
boost::shared_ptr<Playlist>