From 4220907e1faa7ed71e205059cd4f55bca4ced965 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Sat, 29 Jun 2013 02:02:00 +0200 Subject: [PATCH] Proposed fix for Growl --- indra/newview/growlmanager.cpp | 3 ++- indra/newview/growlmanager.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/indra/newview/growlmanager.cpp b/indra/newview/growlmanager.cpp index 6847c5c2d0..d56f4d6b64 100644 --- a/indra/newview/growlmanager.cpp +++ b/indra/newview/growlmanager.cpp @@ -106,7 +106,8 @@ GrowlManager::GrowlManager() : LLEventTimer(GROWL_THROTTLE_CLEANUP_PERIOD) // Hook into LLNotifications... // We hook into all of them, even though (at the time of writing) nothing uses "alert", so more notifications can be added easily. - LLNotificationChannel::buildChannel("GrowlNotifications", "Visible", &filterOldNotifications); + // Ansa: Hope this works... + mGrowlNotificationsChannel = new LLNotificationChannel("GrowlNotifications", "Visible", &filterOldNotifications); LLNotifications::instance().getChannel("GrowlNotifications")->connectChanged(&onLLNotification); // Also hook into IM notifications. diff --git a/indra/newview/growlmanager.h b/indra/newview/growlmanager.h index 9c8784ba9a..4cc0cfc749 100644 --- a/indra/newview/growlmanager.h +++ b/indra/newview/growlmanager.h @@ -69,6 +69,7 @@ private: GrowlNotifier *mNotifier; std::map mNotifications; std::map mTitleTimers; + LLNotificationChannelPtr mGrowlNotificationsChannel; void loadConfig(); static bool onLLNotification(const LLSD& notice);