Compare commits
4 Commits
3823ec122c
...
81d1ad5890
Author | SHA1 | Date | |
---|---|---|---|
81d1ad5890 | |||
18ae113b3c | |||
949b4d4017 | |||
0a19b719d4 |
@ -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();
|
||||
|
@ -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
|
||||
|
@ -4822,13 +4822,20 @@ 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.
|
||||
*/
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/* One exception to the above rule: direct outs (LiveTrax) */
|
||||
if (_direct_outs) {
|
||||
string do_name = string_compose (_("%1 direct"), newname);
|
||||
if (!_direct_outs->set_name (do_name)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user