Proposed fix for Growl

master
Ansariel 2013-06-29 02:02:00 +02:00
parent 07c881b1bf
commit 4220907e1f
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View File

@ -69,6 +69,7 @@ private:
GrowlNotifier *mNotifier;
std::map<std::string, GrowlNotification> mNotifications;
std::map<std::string, U64> mTitleTimers;
LLNotificationChannelPtr mGrowlNotificationsChannel;
void loadConfig();
static bool onLLNotification(const LLSD& notice);