diff options
author | Jacek Antonelli | 2008-12-01 17:39:58 -0600 |
---|---|---|
committer | Jacek Antonelli | 2008-12-01 17:40:06 -0600 |
commit | 7abecb48babe6a6f09bf6692ba55076546cfced9 (patch) | |
tree | 8d18a88513fb97adf32c10aae78f4be1984942db /linden/indra/newview/llpanelmsgs.cpp | |
parent | Second Life viewer sources 1.21.6 (diff) | |
download | meta-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.cpp | 22 |
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 | ||
42 | class LLPopupData | ||
43 | { | ||
44 | public: | ||
45 | LLPopupData() : mShowNewInventory(FALSE), mAutoAcceptNewInventory(FALSE) { } | ||
46 | |||
47 | BOOL mShowNewInventory; | ||
48 | BOOL mAutoAcceptNewInventory; | ||
49 | }; | ||
50 | |||
51 | LLPopupData sPopupData; | ||
52 | |||
53 | //----------------------------------------------------------------------------- | 42 | //----------------------------------------------------------------------------- |
54 | LLPanelMsgs::LLPanelMsgs() : | 43 | LLPanelMsgs::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 | ||
160 | void LLPanelMsgs::apply() | 150 | void 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 | |||
165 | void LLPanelMsgs::cancel() | 157 | void LLPanelMsgs::cancel() |
166 | { | 158 | { |
167 | gSavedSettings.setBOOL("ShowNewInventory", sPopupData.mShowNewInventory); | ||
168 | gSavedSettings.setBOOL("AutoAcceptNewInventory", sPopupData.mAutoAcceptNewInventory); | ||
169 | } | 159 | } |
170 | 160 | ||
171 | void LLPanelMsgs::resetAllIgnored() | 161 | void LLPanelMsgs::resetAllIgnored() |