Merged in RLVa. Viewer broken!

This commit is contained in:
Siana Gearz
2010-11-07 05:05:47 +01:00
parent ae4a9521af
commit 740b570168
94 changed files with 11249 additions and 503 deletions

View File

@@ -277,3 +277,25 @@ void LLFirstUse::useMedia()
LLNotifications::instance().add("FirstMedia");
}
}
// [RLVa:KB] - Version: 1.23.4 | Checked: RLVa-1.0.3a (2009-09-10) | Added: RLVa-1.0.3a
bool rlvHasVisibleFirstUseNotification()
{
LLNotificationChannelPtr activeNotifications = LLNotifications::instance().getChannel("Notifications");
for (LLNotificationChannel::Iterator itNotif = activeNotifications->begin(); itNotif != activeNotifications->end(); itNotif++)
if ((*itNotif)->getName().find(RLV_SETTING_FIRSTUSE_PREFIX) == 0)
return true;
return false;
}
void LLFirstUse::showRlvFirstUseNotification(const std::string& strName)
{
if ( (gSavedSettings.getWarning(strName)) && (!rlvHasVisibleFirstUseNotification()) )
{
gSavedSettings.setWarning(strName, FALSE);
LLNotifications::instance().add(strName);
}
}
// [/RLVa:KB]