fix default naming of cue markers

This commit is contained in:
Paul Davis 2022-01-04 16:22:01 -07:00
parent 54aa57a297
commit 73ca08933d
1 changed files with 10 additions and 2 deletions

View File

@ -725,13 +725,21 @@ void
Editor::mouse_add_new_marker (timepos_t where, Location::Flags extra_flags)
{
string markername;
string namebase;
Location::Flags flags = Location::Flags (extra_flags|Location::IsMark);
cerr << "adding new marker @ " << where << endl;
if (_session) {
_session->locations()->next_available_name(markername, _("mark"));
if (!choose_new_marker_name(markername)) {
if (flags & Location::IsCueMarker) {
namebase = _("cue");
} else {
namebase = _("mark");
}
_session->locations()->next_available_name (markername, namebase);
if (!choose_new_marker_name (markername)) {
return;
}