mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Fix saving Lua Callbacks when un/register succeeds
This fix an issue introduce in 9971e718
This commit is contained in:
parent
693b579253
commit
9e20a24db0
1 changed files with 2 additions and 2 deletions
|
|
@ -1735,11 +1735,11 @@ LuaInstance::register_lua_slot (const std::string& name, const std::string& scri
|
|||
_callbacks.insert (std::make_pair(p->id(), p));
|
||||
p->drop_callback.connect (_slotcon, MISSING_INVALIDATOR, boost::bind (&LuaInstance::unregister_lua_slot, this, p->id()), gui_context());
|
||||
SlotChanged (p->id(), p->name(), p->signals()); /* EMIT SIGNAL */
|
||||
set_dirty ();
|
||||
return true;
|
||||
} catch (luabridge::LuaException const& e) {
|
||||
cerr << "LuaException:" << e.what () << endl;
|
||||
} catch (...) { }
|
||||
set_dirty ();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -1750,9 +1750,9 @@ LuaInstance::unregister_lua_slot (const PBD::ID& id)
|
|||
if (i != _callbacks.end()) {
|
||||
SlotChanged (id, "", ActionHook()); /* EMIT SIGNAL */
|
||||
_callbacks.erase (i);
|
||||
set_dirty ();
|
||||
return true;
|
||||
}
|
||||
set_dirty ();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue