diff options
author | Robin Gareus <robin@gareus.org> | 2017-02-19 00:06:01 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-02-19 01:29:08 +0100 |
commit | 32fe5a083e43065e2ca277bcae834b137fce8d66 (patch) | |
tree | 5fcca185bf9c4dc7167c8322e65d8a76faf3e25a /libs/ardour/session.cc | |
parent | b066ad3164e4ae1a79ec4562556c4b3aa30f6339 (diff) |
Emit a signal when Lua session script change (prepare UI update to un/set)
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index e28685d03f..8edc14300f 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -5271,6 +5271,9 @@ Session::register_lua_function ( tbl_arg[(*i)->name] = (*i)->value; } (*_lua_add)(name, bytecode, tbl_arg); // throws luabridge::LuaException + lm.release(); + + LuaScriptsChanged (); /* EMIT SIGNAL */ set_dirty(); } @@ -5280,6 +5283,9 @@ Session::unregister_lua_function (const std::string& name) Glib::Threads::Mutex::Lock lm (lua_lock); (*_lua_del)(name); // throws luabridge::LuaException lua.collect_garbage (); + lm.release(); + + LuaScriptsChanged (); /* EMIT SIGNAL */ set_dirty(); } |