From a5792b747d5c0318f66360092dafbd4852e2c68c Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Mon, 15 Aug 2011 10:50:13 +0200 Subject: Fix autosave when the slitlist is modified This resource is a bit special, so I forgot to add an autosave call to it. --- src/Slit.cc | 2 ++ src/Slit.hh | 1 + 2 files changed, 3 insertions(+) diff --git a/src/Slit.cc b/src/Slit.cc index f1e171d..4d9a0df 100644 --- a/src/Slit.cc +++ b/src/Slit.cc @@ -210,6 +210,8 @@ void Slit::SlitClientsRes::setFromLua(lua::state &l) { SlitClients::operator=(t); l.pop(); + + m_rm.resourceChanged(*this); } void Slit::SlitClientsRes::pushToLua(lua::state &l) const { diff --git a/src/Slit.hh b/src/Slit.hh index f12a740..77ce6f5 100644 --- a/src/Slit.hh +++ b/src/Slit.hh @@ -176,6 +176,7 @@ private: static unsigned int s_eventmask; Strut *m_strut; + // this class is a bit messy. candidate for rethinking class SlitClientsRes: public FbTk::Resource_base, public SlitClients { public: SlitClientsRes(FbTk::ResourceManager_base &rm, const std::string &name) -- cgit v0.11.2