diff options
Diffstat (limited to 'linden/indra/newview/llfloaterpreference.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterpreference.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/linden/indra/newview/llfloaterpreference.cpp b/linden/indra/newview/llfloaterpreference.cpp index 40f18e8..6a97c38 100644 --- a/linden/indra/newview/llfloaterpreference.cpp +++ b/linden/indra/newview/llfloaterpreference.cpp | |||
@@ -427,11 +427,6 @@ LLFloaterPreference::~LLFloaterPreference() | |||
427 | void LLFloaterPreference::apply() | 427 | void LLFloaterPreference::apply() |
428 | { | 428 | { |
429 | this->mPreferenceCore->apply(); | 429 | this->mPreferenceCore->apply(); |
430 | #if USE_OTR // [$PLOTR$] | ||
431 | U32 otrpref = gSavedSettings.getU32("EmeraldUseOTR"); | ||
432 | // otrpref: 0 == Require OTR, 1 == Request OTR, 2 == Accept OTR, 3 == Decline OTR | ||
433 | if (3 == otrpref) OTR_Wrapper::stopAll(); | ||
434 | #endif // USE_OTR // [/$PLOTR$] | ||
435 | } | 430 | } |
436 | 431 | ||
437 | 432 | ||
@@ -502,13 +497,6 @@ void LLFloaterPreference::onBtnOK( void* userdata ) | |||
502 | if (fp->canClose()) | 497 | if (fp->canClose()) |
503 | { | 498 | { |
504 | fp->apply(); | 499 | fp->apply(); |
505 | |||
506 | #if USE_OTR // [$PLOTR$] | ||
507 | U32 otrpref = gSavedSettings.getU32("EmeraldUseOTR"); | ||
508 | // otrpref: 0 == Require OTR, 1 == Request OTR, 2 == Accept OTR, 3 == Decline OTR | ||
509 | if (3 == otrpref) OTR_Wrapper::stopAll(); | ||
510 | #endif // USE_OTR // [/$PLOTR$] | ||
511 | |||
512 | fp->close(false); | 500 | fp->close(false); |
513 | 501 | ||
514 | gSavedSettings.saveToFile( gSavedSettings.getString("ClientSettingsFile"), TRUE ); | 502 | gSavedSettings.saveToFile( gSavedSettings.getString("ClientSettingsFile"), TRUE ); |
@@ -540,11 +528,6 @@ void LLFloaterPreference::onBtnApply( void* userdata ) | |||
540 | } | 528 | } |
541 | } | 529 | } |
542 | fp->apply(); | 530 | fp->apply(); |
543 | #if USE_OTR // [$PLOTR$] | ||
544 | U32 otrpref = gSavedSettings.getU32("EmeraldUseOTR"); | ||
545 | // otrpref: 0 == Require OTR, 1 == Request OTR, 2 == Accept OTR, 3 == Decline OTR | ||
546 | if (3 == otrpref) OTR_Wrapper::stopAll(); | ||
547 | #endif // USE_OTR // [/$PLOTR$] | ||
548 | 531 | ||
549 | LLPanelLogin::refreshLocation( false ); | 532 | LLPanelLogin::refreshLocation( false ); |
550 | } | 533 | } |