diff options
author | Oz Linden <oz@lindenlab.com> | 2014-10-13 17:13:15 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2014-10-13 17:13:15 -0400 |
commit | 852426d71e5b192a003d01d128799c2b702c69b1 (patch) | |
tree | 66a31f735c3dd92f557a9026cf359ef000d548e9 /indra/newview/llpersistentnotificationstorage.cpp | |
parent | 08a4d7a27743792a644c46f8163d973d0524cd79 (diff) | |
parent | 788ce7a8cdbbbf98566ce75ec281ec00c21dc6d8 (diff) |
merge changes for 3.7.17-release
Diffstat (limited to 'indra/newview/llpersistentnotificationstorage.cpp')
-rwxr-xr-x | indra/newview/llpersistentnotificationstorage.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llpersistentnotificationstorage.cpp b/indra/newview/llpersistentnotificationstorage.cpp index 8658921dc4..9e4f50b7a7 100755 --- a/indra/newview/llpersistentnotificationstorage.cpp +++ b/indra/newview/llpersistentnotificationstorage.cpp @@ -35,7 +35,7 @@ #include "llscreenchannel.h" #include "llscriptfloater.h" #include "llviewermessage.h" - +#include "llviewernetwork.h" LLPersistentNotificationStorage::LLPersistentNotificationStorage() : LLSingleton<LLPersistentNotificationStorage>() , LLNotificationStorage("") @@ -158,7 +158,10 @@ void LLPersistentNotificationStorage::loadNotifications() void LLPersistentNotificationStorage::initialize() { - setFileName(gDirUtilp->getExpandedFilename(LL_PATH_PER_SL_ACCOUNT, "open_notifications.xml")); + std::string file_name = "open_notifications_" + LLGridManager::getInstance()->getGrid() + ".xml"; + setFileName(gDirUtilp->getExpandedFilename(LL_PATH_PER_SL_ACCOUNT, file_name)); + setOldFileName(gDirUtilp->getExpandedFilename(LL_PATH_PER_SL_ACCOUNT, "open_notifications.xml")); + LLNotifications::instance().getChannel("Persistent")-> connectChanged(boost::bind(&LLPersistentNotificationStorage::onPersistentChannelChanged, this, _1)); } |