]> granicus.if.org Git - icinga2/commitdiff
Fix initialization bug for the Notification class
authorGunnar Beutner <gunnar@beutner.name>
Sat, 22 Nov 2014 15:42:57 +0000 (16:42 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Sat, 22 Nov 2014 15:43:39 +0000 (16:43 +0100)
refs #7780

lib/icinga/notification.cpp
lib/icinga/notification.hpp

index 6d0f5d4872d2f2ca9c2217678a315d57dec02eb2..1ebe3a5fdfddaa04ab2f15fec06aad5ed6546564 100644 (file)
@@ -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)
index 80f2b05dd00f4822e048946a76fde094818ee3a2..73b7f987cbdc20b809274b826998f81374ec60ec 100644 (file)
@@ -115,6 +115,7 @@ public:
 
 protected:
        virtual void OnConfigLoaded(void);
+       virtual void OnAllConfigLoaded(void);
        virtual void Start(void);
        virtual void Stop(void);