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.
This commit is contained in:
parent
7476e92403
commit
272d095af6
@ -369,8 +369,6 @@ Track::resync_track_name ()
|
|||||||
bool
|
bool
|
||||||
Track::set_name (const string& str)
|
Track::set_name (const string& str)
|
||||||
{
|
{
|
||||||
bool ret;
|
|
||||||
|
|
||||||
if (str.empty ()) {
|
if (str.empty ()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -423,8 +421,7 @@ Track::set_name (const string& str)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* When creating a track during session-load,
|
/* When creating a track during session-load, do not change playlist's name.
|
||||||
* do not change playlist's name, nor try to save the session.
|
|
||||||
*
|
*
|
||||||
* Changing the playlist name from 'toBeResetFroXML' breaks loading
|
* Changing the playlist name from 'toBeResetFroXML' breaks loading
|
||||||
* Ardour v2..5 sessions. Older versions of Arodur identified playlist
|
* 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 */
|
return Route::set_name (str);
|
||||||
|
|
||||||
if ((ret = Route::set_name (str)) == 0) {
|
|
||||||
_session.save_state ();
|
|
||||||
}
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
boost::shared_ptr<Playlist>
|
boost::shared_ptr<Playlist>
|
||||||
|
Loading…
Reference in New Issue
Block a user