aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelmsgs.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-12-01 17:39:58 -0600
committerJacek Antonelli2008-12-01 17:40:06 -0600
commit7abecb48babe6a6f09bf6692ba55076546cfced9 (patch)
tree8d18a88513fb97adf32c10aae78f4be1984942db /linden/indra/newview/llpanelmsgs.cpp
parentSecond Life viewer sources 1.21.6 (diff)
downloadmeta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.zip
meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.gz
meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.bz2
meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.xz
Second Life viewer sources 1.22.0-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpanelmsgs.cpp22
1 files changed, 6 insertions, 16 deletions
diff --git a/linden/indra/newview/llpanelmsgs.cpp b/linden/indra/newview/llpanelmsgs.cpp
index cc3579e..4d2ff54 100644
--- a/linden/indra/newview/llpanelmsgs.cpp
+++ b/linden/indra/newview/llpanelmsgs.cpp
@@ -39,17 +39,6 @@
39#include "lluictrlfactory.h" 39#include "lluictrlfactory.h"
40#include "llfirstuse.h" 40#include "llfirstuse.h"
41 41
42class LLPopupData
43{
44public:
45 LLPopupData() : mShowNewInventory(FALSE), mAutoAcceptNewInventory(FALSE) { }
46
47 BOOL mShowNewInventory;
48 BOOL mAutoAcceptNewInventory;
49};
50
51LLPopupData sPopupData;
52
53//----------------------------------------------------------------------------- 42//-----------------------------------------------------------------------------
54LLPanelMsgs::LLPanelMsgs() : 43LLPanelMsgs::LLPanelMsgs() :
55 LLPanel(std::string("Messages Panel")), 44 LLPanel(std::string("Messages Panel")),
@@ -75,8 +64,9 @@ BOOL LLPanelMsgs::postBuild()
75 childSetAction("skip_dialogs_btn", onClickSkipDialogs, this); 64 childSetAction("skip_dialogs_btn", onClickSkipDialogs, this);
76 buildLists(); 65 buildLists();
77 66
78 sPopupData.mAutoAcceptNewInventory = gSavedSettings.getBOOL("AutoAcceptNewInventory"); 67 childSetValue("accept_new_inventory", gSavedSettings.getBOOL("AutoAcceptNewInventory"));
79 sPopupData.mShowNewInventory = gSavedSettings.getBOOL("ShowNewInventory"); 68 childSetValue("show_new_inventory", gSavedSettings.getBOOL("ShowNewInventory"));
69 childSetValue("show_in_inventory", gSavedSettings.getBOOL("ShowInInventory"));
80 70
81 return TRUE; 71 return TRUE;
82} 72}
@@ -159,13 +149,13 @@ void LLPanelMsgs::draw()
159 149
160void LLPanelMsgs::apply() 150void LLPanelMsgs::apply()
161{ 151{
152 gSavedSettings.setBOOL("AutoAcceptNewInventory", childGetValue("accept_new_inventory"));
153 gSavedSettings.setBOOL("ShowNewInventory", childGetValue("show_new_inventory"));
154 gSavedSettings.setBOOL("ShowInInventory", childGetValue("show_in_inventory"));
162} 155}
163 156
164
165void LLPanelMsgs::cancel() 157void LLPanelMsgs::cancel()
166{ 158{
167 gSavedSettings.setBOOL("ShowNewInventory", sPopupData.mShowNewInventory);
168 gSavedSettings.setBOOL("AutoAcceptNewInventory", sPopupData.mAutoAcceptNewInventory);
169} 159}
170 160
171void LLPanelMsgs::resetAllIgnored() 161void LLPanelMsgs::resetAllIgnored()