mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
do not crash if an unknown action is used by US2400 support
This commit is contained in:
parent
91ed9840d0
commit
b67bb8165b
1 changed files with 2 additions and 2 deletions
|
|
@ -556,7 +556,7 @@ US2400ProtocolGUI::refresh_function_key_editor ()
|
|||
row[function_key_columns.plain] = action;
|
||||
} else {
|
||||
|
||||
act = ActionManager::get_action (action.c_str());
|
||||
act = ActionManager::get_action (action.c_str(), false);
|
||||
if (act) {
|
||||
row[function_key_columns.plain] = act->get_label();
|
||||
} else {
|
||||
|
|
@ -677,7 +677,7 @@ US2400ProtocolGUI::action_changed (const Glib::ustring &sPath, const Glib::ustri
|
|||
return;
|
||||
}
|
||||
}
|
||||
Glib::RefPtr<Gtk::Action> act = ActionManager::get_action (i->second.c_str());
|
||||
Glib::RefPtr<Gtk::Action> act = ActionManager::get_action (i->second.c_str(), false);
|
||||
|
||||
if (act || remove) {
|
||||
/* update visible text, using string supplied by
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue