From: Gunnar Beutner Date: Sat, 22 Nov 2014 15:42:57 +0000 (+0100) Subject: Fix initialization bug for the Notification class X-Git-Tag: v2.3.0~644 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=307db672c1e86b043a8873603b29427618c28c11;p=icinga2 Fix initialization bug for the Notification class refs #7780 --- 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);