diff options
Diffstat (limited to 'linden/indra/newview/llfloaterpreference.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterpreference.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/linden/indra/newview/llfloaterpreference.cpp b/linden/indra/newview/llfloaterpreference.cpp index 17a59cc..c468a5e 100644 --- a/linden/indra/newview/llfloaterpreference.cpp +++ b/linden/indra/newview/llfloaterpreference.cpp | |||
@@ -62,6 +62,7 @@ | |||
62 | #include "llpanelmsgs.h" | 62 | #include "llpanelmsgs.h" |
63 | #include "llpanelweb.h" | 63 | #include "llpanelweb.h" |
64 | #include "llpanelskins.h" | 64 | #include "llpanelskins.h" |
65 | #include "llprefsadvanced.h" | ||
65 | #include "llprefschat.h" | 66 | #include "llprefschat.h" |
66 | #include "llprefsvoice.h" | 67 | #include "llprefsvoice.h" |
67 | #include "llprefsim.h" | 68 | #include "llprefsim.h" |
@@ -132,7 +133,8 @@ LLPreferenceCore::LLPreferenceCore(LLTabContainer* tab_container, LLButton * def | |||
132 | mAudioPanel(NULL), | 133 | mAudioPanel(NULL), |
133 | mMsgPanel(NULL), | 134 | mMsgPanel(NULL), |
134 | mSkinsPanel(NULL), | 135 | mSkinsPanel(NULL), |
135 | mLCDPanel(NULL) | 136 | mLCDPanel(NULL), |
137 | mPrefsAdvanced(NULL) | ||
136 | { | 138 | { |
137 | mGeneralPanel = new LLPanelGeneral(); | 139 | mGeneralPanel = new LLPanelGeneral(); |
138 | mTabContainer->addTabPanel(mGeneralPanel, mGeneralPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | 140 | mTabContainer->addTabPanel(mGeneralPanel, mGeneralPanel->getLabel(), FALSE, onTabChanged, mTabContainer); |
@@ -192,6 +194,10 @@ LLPreferenceCore::LLPreferenceCore(LLTabContainer* tab_container, LLButton * def | |||
192 | mTabContainer->addTabPanel(mSkinsPanel, mSkinsPanel->getLabel(), FALSE, onTabChanged, mTabContainer); | 194 | mTabContainer->addTabPanel(mSkinsPanel, mSkinsPanel->getLabel(), FALSE, onTabChanged, mTabContainer); |
193 | mSkinsPanel->setDefaultBtn(default_btn); | 195 | mSkinsPanel->setDefaultBtn(default_btn); |
194 | 196 | ||
197 | mPrefsAdvanced = new LLPrefsAdvanced(); | ||
198 | mTabContainer->addTabPanel(mPrefsAdvanced, mPrefsAdvanced->getLabel(), FALSE, onTabChanged, mTabContainer); | ||
199 | mPrefsAdvanced->setDefaultBtn(default_btn); | ||
200 | |||
195 | if (!mTabContainer->selectTab(gSavedSettings.getS32("LastPrefTab"))) | 201 | if (!mTabContainer->selectTab(gSavedSettings.getS32("LastPrefTab"))) |
196 | { | 202 | { |
197 | mTabContainer->selectFirstTab(); | 203 | mTabContainer->selectFirstTab(); |
@@ -251,6 +257,11 @@ LLPreferenceCore::~LLPreferenceCore() | |||
251 | delete mSkinsPanel; | 257 | delete mSkinsPanel; |
252 | mSkinsPanel = NULL; | 258 | mSkinsPanel = NULL; |
253 | } | 259 | } |
260 | if (mPrefsAdvanced) | ||
261 | { | ||
262 | delete mPrefsAdvanced; | ||
263 | mPrefsAdvanced = NULL; | ||
264 | } | ||
254 | 265 | ||
255 | } | 266 | } |
256 | 267 | ||
@@ -267,6 +278,7 @@ void LLPreferenceCore::apply() | |||
267 | mPrefsIM->apply(); | 278 | mPrefsIM->apply(); |
268 | mMsgPanel->apply(); | 279 | mMsgPanel->apply(); |
269 | mSkinsPanel->apply(); | 280 | mSkinsPanel->apply(); |
281 | mPrefsAdvanced->apply(); | ||
270 | 282 | ||
271 | // hardware menu apply | 283 | // hardware menu apply |
272 | LLFloaterHardwareSettings::instance()->apply(); | 284 | LLFloaterHardwareSettings::instance()->apply(); |
@@ -295,6 +307,7 @@ void LLPreferenceCore::cancel() | |||
295 | mPrefsIM->cancel(); | 307 | mPrefsIM->cancel(); |
296 | mMsgPanel->cancel(); | 308 | mMsgPanel->cancel(); |
297 | mSkinsPanel->cancel(); | 309 | mSkinsPanel->cancel(); |
310 | mPrefsAdvanced->cancel(); | ||
298 | 311 | ||
299 | // cancel hardware menu | 312 | // cancel hardware menu |
300 | LLFloaterHardwareSettings::instance()->cancel(); | 313 | LLFloaterHardwareSettings::instance()->cancel(); |