[icinga-checkins] icinga.org: icinga2/feature/refactor-script-stackframes-7748: Fix initialization bug for the Notification class

git at icinga.org git at icinga.org
Sat Nov 22 17:16:33 CET 2014


Module: icinga2
Branch: feature/refactor-script-stackframes-7748
Commit: 307db672c1e86b043a8873603b29427618c28c11
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=307db672c1e86b043a8873603b29427618c28c11

Author: Gunnar Beutner <gunnar at beutner.name>
Date:   Sat Nov 22 16:42:57 2014 +0100

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 6d0f5d4..1ebe3a5 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 80f2b05..73b7f98 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);
 



More information about the icinga-checkins mailing list