check whether to rename new markers before showing the rename dialog

This commit is contained in:
Ben Loftis
2025-04-11 08:43:22 -05:00
parent 7e8230c3be
commit c8576880e6

View File

@@ -1999,9 +1999,11 @@ Editor::add_location_mark_with_flag (timepos_t const & where, Location::Flags fl
Location *location = new Location (*_session, where, where, markername, flags, cue_id);
if (!edit_location (*location, true, false)) {
delete location;
return;
if (UIConfiguration::instance().get_name_new_markers()) {
if (!edit_location (*location, true, false)) {
delete location;
return;
}
}
begin_reversible_command (_("add marker"));