* callbacks are unregistered during session-deletion, skip saving them
during session destruction.
* prevent duplicate state restore, re-load script with the session, not
window instance.
{
lua.Print.connect (&_lua_print);
init ();
-
- load_state ();
}
LuaInstance::~LuaInstance ()
void
LuaInstance::set_dirty ()
{
+ if (!_session || _session->deletion_in_progress()) {
+ return;
+ }
save_state ();
_session->set_dirty (); // XXX is this reasonable?
}
}
}
+ assert (_callbacks.empty());
if ((child = find_named_node (node, "ActionHooks"))) {
for (XMLNodeList::const_iterator n = child->children ().begin (); n != child->children ().end (); ++n) {
try {