mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 23:47:39 +01:00
ensure that OSC calls to access_action occur in the correct thread
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3524 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d0062541da
commit
73bb86efac
1 changed files with 5 additions and 1 deletions
|
|
@ -1036,13 +1036,17 @@ Editor::access_action (std::string action_group, std::string action_item)
|
|||
return;
|
||||
}
|
||||
|
||||
ENSURE_GUI_THREAD (bind (mem_fun (*this, &Editor::access_action), action_group, action_item));
|
||||
|
||||
cout<< "OSC: Recieved: "<< action_item << endl;
|
||||
|
||||
RefPtr<Action> act;
|
||||
act = ActionManager::get_action( action_group.c_str(), action_item.c_str() );
|
||||
|
||||
if( act )
|
||||
if (act) {
|
||||
act->activate();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue