Found another one -- does this ever end? :)
[ardour.git] / gtk2_ardour / luainstance.cc
index 234eb53ae53080cb0b789650231e72dbe68f095b..a3349165396d916ed42ce0aac6349feeaf8ede79 100644 (file)
@@ -477,17 +477,13 @@ lua_actionlist (lua_State *L)
                if (parts[1] == _("ProcessorMenu"))
                        continue;
 
-               /* strip <Actions>/ from the start */
-               string path = (*p);
-               path = path.substr (strlen ("<Actions>/"));
-
                if (!action_tbl[parts[1]].isTable()) {
                        action_tbl[parts[1]] = luabridge::newTable (L);
                }
                assert (action_tbl[parts[1]].isTable());
                luabridge::LuaRef tbl (action_tbl[parts[1]]);
                assert (tbl.isTable());
-               tbl[*l] = path;
+               tbl[*l] = *p;
        }
 
        luabridge::push (L, action_tbl);