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:
Paul Davis 2008-07-08 16:27:38 +00:00
parent d0062541da
commit 73bb86efac

View file

@ -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();
}
}