From 307db672c1e86b043a8873603b29427618c28c11 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 22 Nov 2014 16:42:57 +0100 Subject: [PATCH] Fix initialization bug for the Notification class refs #7780 --- lib/icinga/notification.cpp | 3 +++ lib/icinga/notification.hpp | 1 + 2 files changed, 4 insertions(+) diff --git a/lib/icinga/notification.cpp b/lib/icinga/notification.cpp index 6d0f5d487..1ebe3a5fd 100644 --- a/lib/icinga/notification.cpp +++ b/lib/icinga/notification.cpp @@ -80,7 +80,10 @@ void Notification::OnConfigLoaded(void) { SetTypeFilter(FilterArrayToInt(GetTypes(), ~0)); SetStateFilter(FilterArrayToInt(GetStates(), ~0)); +} +void Notification::OnAllConfigLoaded(void) +{ Checkable::Ptr obj = GetCheckable(); if (obj) diff --git a/lib/icinga/notification.hpp b/lib/icinga/notification.hpp index 80f2b05dd..73b7f987c 100644 --- a/lib/icinga/notification.hpp +++ b/lib/icinga/notification.hpp @@ -115,6 +115,7 @@ public: protected: virtual void OnConfigLoaded(void); + virtual void OnAllConfigLoaded(void); virtual void Start(void); virtual void Stop(void);