Mixer Scenes: initialize with a datestamp, rather than no name at all

This commit is contained in:
Ben Loftis 2022-11-07 10:08:42 -06:00
parent 08c1b97e06
commit 68dc07ecee
1 changed files with 8 additions and 1 deletions

View File

@ -7567,7 +7567,14 @@ Session::apply_nth_mixer_scene (size_t nth, RouteList const& rl)
void void
Session::store_nth_mixer_scene (size_t nth) Session::store_nth_mixer_scene (size_t nth)
{ {
nth_mixer_scene (nth, true)->snapshot (); boost::shared_ptr<MixerScene> scn = nth_mixer_scene (nth, true);
scn->snapshot ();
//calling code is expected to set a name, but we need to initalize with 'something'
if (scn->name().length()==0) {
std::string str = Glib::DateTime::create_now_local().format ("%FT%H.%M.%S");
scn->set_name(str);
}
} }
boost::shared_ptr<MixerScene> boost::shared_ptr<MixerScene>