diff options
author | David Walter Seikel | 2013-09-02 23:35:38 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-09-02 23:35:38 +1000 |
commit | a96ab6cba4bd10141d947860d210c1f452734819 (patch) | |
tree | bd69732c5d9f9f17831af554c41d01ce6d85c849 | |
parent | More post merge cleanups, make it compile under Windows. (diff) | |
download | meta-impy-a96ab6cba4bd10141d947860d210c1f452734819.zip meta-impy-a96ab6cba4bd10141d947860d210c1f452734819.tar.gz meta-impy-a96ab6cba4bd10141d947860d210c1f452734819.tar.bz2 meta-impy-a96ab6cba4bd10141d947860d210c1f452734819.tar.xz |
Fix up OTR prefs to not crash.
No idea how this managed to work before.
-rw-r--r-- | linden/indra/newview/floaterotr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/floaterotr.cpp b/linden/indra/newview/floaterotr.cpp index a655fd7..4c78d4c 100644 --- a/linden/indra/newview/floaterotr.cpp +++ b/linden/indra/newview/floaterotr.cpp | |||
@@ -54,7 +54,7 @@ BOOL FloaterOTR::postBuild() | |||
54 | childSetAction("btn_cancel", onClickCancel, this); | 54 | childSetAction("btn_cancel", onClickCancel, this); |
55 | 55 | ||
56 | childSetValue("EmeraldUseOTR", LLSD((S32)gSavedSettings.getU32("EmeraldUseOTR"))); | 56 | childSetValue("EmeraldUseOTR", LLSD((S32)gSavedSettings.getU32("EmeraldUseOTR"))); |
57 | childSetValue("EmeraldUseOTRInTypingStop", gSavedSettings.getBOOL("EmeraldUseOTRInTypingStop")); | 57 | childSetValue("EmeraldOTRInTypingStop", gSavedSettings.getBOOL("EmeraldOTRInTypingStop")); |
58 | getChild<LLButton>("otr_help_btn")->setClickedCallback(onClickOtrHelp, this); | 58 | getChild<LLButton>("otr_help_btn")->setClickedCallback(onClickOtrHelp, this); |
59 | 59 | ||
60 | return TRUE; | 60 | return TRUE; |
@@ -89,7 +89,7 @@ void FloaterOTR::apply() | |||
89 | U32 otrpref = childGetValue("EmeraldUseOTR").asReal(); | 89 | U32 otrpref = childGetValue("EmeraldUseOTR").asReal(); |
90 | 90 | ||
91 | gSavedSettings.setU32("EmeraldUseOTR", otrpref); | 91 | gSavedSettings.setU32("EmeraldUseOTR", otrpref); |
92 | gSavedSettings.setBOOL("EmeraldUseOTRInTypingStop", childGetValue("EmeraldUseOTRInTypingStop").asBoolean()); | 92 | gSavedSettings.setBOOL("EmeraldOTRInTypingStop", childGetValue("EmeraldOTRInTypingStop").asBoolean()); |
93 | // otrpref: 0 == Require OTR, 1 == Request OTR, 2 == Accept OTR, 3 == Decline OTR | 93 | // otrpref: 0 == Require OTR, 1 == Request OTR, 2 == Accept OTR, 3 == Decline OTR |
94 | if (3 == otrpref) | 94 | if (3 == otrpref) |
95 | OTR_Wrapper::stopAll(); | 95 | OTR_Wrapper::stopAll(); |