diff options
author | Robin Gareus <robin@gareus.org> | 2018-10-04 03:57:09 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-10-04 03:57:09 +0200 |
commit | 4d3cd732c93dd64b8768ec5f8398999f521ee6f0 (patch) | |
tree | 89fddbfd585ff1b95e6dd9b7e617c385b78532d5 /gtk2_ardour/luainstance.cc | |
parent | 39f65bbce209e1be1591dd0a32c34ad6a11bcf97 (diff) |
Unhardcode and increase bindable Lua-script-action count
Diffstat (limited to 'gtk2_ardour/luainstance.cc')
-rw-r--r-- | gtk2_ardour/luainstance.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/luainstance.cc b/gtk2_ardour/luainstance.cc index 236a5d88e2..f184368f1d 100644 --- a/gtk2_ardour/luainstance.cc +++ b/gtk2_ardour/luainstance.cc @@ -1290,7 +1290,7 @@ LuaInstance::session_going_away () point_one_second_connection.disconnect (); (*_lua_clear)(); - for (int i = 0; i < 9; ++i) { + for (int i = 0; i < MAX_LUA_ACTION_SCRIPTS; ++i) { ActionChanged (i, ""); /* EMIT SIGNAL */ } SessionHandlePtr::session_going_away (); @@ -1322,7 +1322,7 @@ LuaInstance::set_state (const XMLNode& node) } catch (luabridge::LuaException const& e) { cerr << "LuaException:" << e.what () << endl; } catch (...) { } - for (int i = 0; i < 9; ++i) { + for (int i = 0; i < MAX_LUA_ACTION_SCRIPTS; ++i) { std::string name; if (lua_action_name (i, name)) { ActionChanged (i, name); /* EMIT SIGNAL */ @@ -1580,7 +1580,7 @@ std::vector<std::string> LuaInstance::lua_action_names () { std::vector<std::string> rv; - for (int i = 0; i < 9; ++i) { + for (int i = 0; i < MAX_LUA_ACTION_SCRIPTS; ++i) { std::string name; if (lua_action_name (i, name)) { rv.push_back (name); |