diff --git a/lib/compat/statusdatawriter.cpp b/lib/compat/statusdatawriter.cpp index 096726101..893f517ec 100644 --- a/lib/compat/statusdatawriter.cpp +++ b/lib/compat/statusdatawriter.cpp @@ -82,7 +82,8 @@ void StatusDataWriter::Start(void) m_StatusTimer->Start(); m_StatusTimer->Reschedule(0); - ConfigObject::OnVersionChanged.connect(boost::bind(&StatusDataWriter::VersionChangedHandler, this)); + ConfigObject::OnVersionChanged.connect(boost::bind(&StatusDataWriter::ObjectHandler, this)); + ConfigObject::OnActiveChanged.connect(boost::bind(&StatusDataWriter::ObjectHandler, this)); } void StatusDataWriter::DumpComments(std::ostream& fp, const Checkable::Ptr& checkable) @@ -867,7 +868,7 @@ void StatusDataWriter::StatusTimerHandler(void) << "Writing status.dat file took " << Utility::FormatDuration(Utility::GetTime() - start); } -void StatusDataWriter::VersionChangedHandler(void) +void StatusDataWriter::ObjectHandler(void) { m_ObjectsCacheOutdated = true; } diff --git a/lib/compat/statusdatawriter.hpp b/lib/compat/statusdatawriter.hpp index ab1dab0c8..c6ee85a9c 100644 --- a/lib/compat/statusdatawriter.hpp +++ b/lib/compat/statusdatawriter.hpp @@ -100,7 +100,7 @@ private: void UpdateObjectsCache(void); void StatusTimerHandler(void); - void VersionChangedHandler(void); + void ObjectHandler(void); }; }