aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterpreference.cpp
diff options
context:
space:
mode:
authorJay Threeth2011-04-23 12:52:44 -0700
committerJay Threeth2011-04-23 12:52:44 -0700
commit868c30aecfa1fb6a0a1f36448bc1a42c861b45ff (patch)
tree6e1cccd381ecf4376dfda7fd97e52f82e08e1619 /linden/indra/newview/llfloaterpreference.cpp
parentBuild libotr, and static link it, libgpg-error and libgcrypt into the exe (on... (diff)
parentThe next part of the UI changes for OTR. (diff)
downloadmeta-impy-868c30aecfa1fb6a0a1f36448bc1a42c861b45ff.zip
meta-impy-868c30aecfa1fb6a0a1f36448bc1a42c861b45ff.tar.gz
meta-impy-868c30aecfa1fb6a0a1f36448bc1a42c861b45ff.tar.bz2
meta-impy-868c30aecfa1fb6a0a1f36448bc1a42c861b45ff.tar.xz
Merge branch 'libotr' of github.com:onefang/meta-impy into libotr
Diffstat (limited to 'linden/indra/newview/llfloaterpreference.cpp')
-rw-r--r--linden/indra/newview/llfloaterpreference.cpp17
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()
427void LLFloaterPreference::apply() 427void 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}