aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelmsgs.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpanelmsgs.cpp24
1 files changed, 7 insertions, 17 deletions
diff --git a/linden/indra/newview/llpanelmsgs.cpp b/linden/indra/newview/llpanelmsgs.cpp
index cc3579e..065bbdd 100644
--- a/linden/indra/newview/llpanelmsgs.cpp
+++ b/linden/indra/newview/llpanelmsgs.cpp
@@ -4,7 +4,7 @@
4 * 4 *
5 * $LicenseInfo:firstyear=2003&license=viewergpl$ 5 * $LicenseInfo:firstyear=2003&license=viewergpl$
6 * 6 *
7 * Copyright (c) 2003-2008, Linden Research, Inc. 7 * Copyright (c) 2003-2009, Linden Research, Inc.
8 * 8 *
9 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 10 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -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()