13
0

Merge branch 'ardour'

This commit is contained in:
Paul Davis 2024-06-01 07:58:37 -06:00
commit 18ae113b3c
3 changed files with 4 additions and 4 deletions

View File

@ -2379,7 +2379,7 @@ Editor::add_location_mark_with_flag (timepos_t const & where, Location::Flags fl
if (!choose_new_marker_name (markername)) {
return;
}
Location *location = new Location (*_session, where, where, markername, flags);
Location *location = new Location (*_session, where, where, markername, flags, cue_id);
begin_reversible_command (_("add marker"));
XMLNode &before = _session->locations()->get_state();

View File

@ -297,9 +297,9 @@ Editor::popup_ruler_menu (timepos_t const & where, ItemType t)
Gtk::MenuItem& cue_submenu = add_items.back();
Gtk::Menu* cue_menu = new Gtk::Menu;
MenuList& cue_items = cue_menu->items();
cue_items.push_back (MenuElem (_("Stop All Cues"), sigc::bind (sigc::mem_fun (*this, &Editor::add_location_mark_with_flag), where, Location::IsCueMarker, CueRecord::stop_all)));
cue_items.push_back (MenuElem (_("Stop All Cues"), sigc::bind (sigc::mem_fun (*this, &Editor::add_location_mark_with_flag), where, Location::Flags(Location::IsMark |Location::IsCueMarker), CueRecord::stop_all)));
for (int32_t n = 0; n < TriggerBox::default_triggers_per_box; ++n) {
cue_items.push_back (MenuElem (string_compose (_("Cue %1"), cue_marker_name (n)), sigc::bind (sigc::mem_fun(*this, &Editor::add_location_mark_with_flag), where, Location::IsCueMarker, n)));
cue_items.push_back (MenuElem (string_compose (_("Cue %1"), cue_marker_name (n)), sigc::bind (sigc::mem_fun(*this, &Editor::add_location_mark_with_flag), where, Location::Flags(Location::IsMark |Location::IsCueMarker), n)));
}
cue_submenu.set_submenu (*cue_menu);
#endif

View File

@ -4822,7 +4822,7 @@ Route::set_name (const string& str)
*/
if (_main_outs) {
if (_main_outs->set_name (newname)) {
if (!_main_outs->set_name (newname)) {
/* XXX returning false here is stupid because
we already changed the route name.
*/