Add an exception handler for access_action() used by control surfaces and Lua.
This commit is contained in:
parent
957393c435
commit
21e2b353c1
@ -1142,11 +1142,14 @@ Editor::access_action (const std::string& action_group, const std::string& actio
|
||||
ENSURE_GUI_THREAD (*this, &Editor::access_action, action_group, action_item)
|
||||
|
||||
RefPtr<Action> act;
|
||||
try {
|
||||
act = ActionManager::get_action (action_group.c_str(), action_item.c_str());
|
||||
|
||||
if (act) {
|
||||
act->activate();
|
||||
}
|
||||
} catch ( ActionManager::MissingActionException const& e) {
|
||||
cerr << "MissingActionException:" << e.what () << endl;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user