From 73bb86efacb7eebaa671226917c95481a624c6d3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 8 Jul 2008 16:27:38 +0000 Subject: [PATCH] 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 --- gtk2_ardour/editor.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index b86469bd2d..08ccd45ab7 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -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 act; act = ActionManager::get_action( action_group.c_str(), action_item.c_str() ); - if( act ) + if (act) { act->activate(); + } + }