diff options
Diffstat (limited to 'linden/indra/newview/llfirstuse.cpp')
-rw-r--r-- | linden/indra/newview/llfirstuse.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/linden/indra/newview/llfirstuse.cpp b/linden/indra/newview/llfirstuse.cpp index c6f8356..d0c7c20 100644 --- a/linden/indra/newview/llfirstuse.cpp +++ b/linden/indra/newview/llfirstuse.cpp | |||
@@ -363,6 +363,32 @@ void LLFirstUse::ClientTags() | |||
363 | } | 363 | } |
364 | } | 364 | } |
365 | 365 | ||
366 | #if USE_OTR // [$PLOTR$] | ||
367 | void LLFirstUse::callbackEmeraldOTR(const LLSD ¬ification, const LLSD &response) | ||
368 | { | ||
369 | gSavedSettings.setWarning("EmeraldOTR", FALSE); | ||
370 | |||
371 | S32 option = LLNotification::getSelectedOption(notification, response); | ||
372 | |||
373 | if ( option == 0 ) | ||
374 | { | ||
375 | gSavedSettings.setU32("EmeraldUseOTR",(U32)1); | ||
376 | } | ||
377 | else if ( option == 1 ) | ||
378 | { | ||
379 | gSavedSettings.setU32("EmeraldUseOTR",(U32)2); | ||
380 | } | ||
381 | } | ||
382 | |||
383 | void LLFirstUse::EmeraldOTR() | ||
384 | { | ||
385 | if(gSavedSettings.getWarning("EmeraldOTR")) | ||
386 | { | ||
387 | LLNotifications::instance().add("QueryEmeraldOTR", LLSD(),LLSD(), callbackEmeraldOTR); | ||
388 | } | ||
389 | } | ||
390 | #endif // USE_OTR // [/$PLOTR$] | ||
391 | |||
366 | // static | 392 | // static |
367 | void LLFirstUse::useLoginScreen() | 393 | void LLFirstUse::useLoginScreen() |
368 | { | 394 | { |