From 3bca951b81f8d84f1c47ecc2ab8f9b7fb3da284f Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 22 Sep 2015 12:01:34 +0200 Subject: [PATCH] Add missing handler for OnActiveChanged refs #9098 --- lib/compat/statusdatawriter.cpp | 5 +++-- lib/compat/statusdatawriter.hpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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); }; }