diff options
author | McCabe Maxsted | 2011-03-23 19:45:04 -0700 |
---|---|---|
committer | McCabe Maxsted | 2011-03-23 19:45:04 -0700 |
commit | 75e6222d5fe23bfbf9a02bf4a6969ac25b8ceac1 (patch) | |
tree | c5bd538b57712320c354f3eb1567aabbdf13f85b /linden/indra/newview/llprefsadvanced.cpp | |
parent | Merge remote-tracking branch 'armin/exp' into exp (diff) | |
download | meta-impy-75e6222d5fe23bfbf9a02bf4a6969ac25b8ceac1.zip meta-impy-75e6222d5fe23bfbf9a02bf4a6969ac25b8ceac1.tar.gz meta-impy-75e6222d5fe23bfbf9a02bf4a6969ac25b8ceac1.tar.bz2 meta-impy-75e6222d5fe23bfbf9a02bf4a6969ac25b8ceac1.tar.xz |
Moved 'Reset all preferences to default' button to a more logical place: in the main preferences window
Diffstat (limited to 'linden/indra/newview/llprefsadvanced.cpp')
-rw-r--r-- | linden/indra/newview/llprefsadvanced.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/linden/indra/newview/llprefsadvanced.cpp b/linden/indra/newview/llprefsadvanced.cpp index 99bc4fd..89dc0b2 100644 --- a/linden/indra/newview/llprefsadvanced.cpp +++ b/linden/indra/newview/llprefsadvanced.cpp | |||
@@ -58,7 +58,6 @@ LLPrefsAdvanced::LLPrefsAdvanced() | |||
58 | childSetCommitCallback("speed_rez_check", onCommitCheckBox, this); | 58 | childSetCommitCallback("speed_rez_check", onCommitCheckBox, this); |
59 | childSetCommitCallback("command_line_check", onCommitCheckBox, this); | 59 | childSetCommitCallback("command_line_check", onCommitCheckBox, this); |
60 | 60 | ||
61 | childSetAction("reset_btn", onClickResetPrefs, this); | ||
62 | childSetAction("command_line_btn", onClickCommandLine, this); | 61 | childSetAction("command_line_btn", onClickCommandLine, this); |
63 | } | 62 | } |
64 | 63 | ||
@@ -274,24 +273,6 @@ void LLPrefsAdvanced::onCommitCheckBox(LLUICtrl* ctrl, void* user_data) | |||
274 | self->refresh(); | 273 | self->refresh(); |
275 | } | 274 | } |
276 | 275 | ||
277 | // static | ||
278 | void LLPrefsAdvanced::onClickResetPrefs(void* user_data) | ||
279 | { | ||
280 | LLPrefsAdvanced* self = (LLPrefsAdvanced*)user_data; | ||
281 | LLNotifications::instance().add("ConfirmResetAllPreferences", LLSD(), LLSD(), boost::bind(callbackReset, _1, _2, self)); | ||
282 | } | ||
283 | |||
284 | // static | ||
285 | bool LLPrefsAdvanced::callbackReset(const LLSD& notification, const LLSD& response, LLPrefsAdvanced *self) | ||
286 | { | ||
287 | S32 option = LLNotification::getSelectedOption(notification, response); | ||
288 | if ( option == 0 ) | ||
289 | { | ||
290 | gSavedSettings.setBOOL("ResetAllPreferences", TRUE); | ||
291 | } | ||
292 | return false; | ||
293 | } | ||
294 | |||
295 | void LLPrefsAdvanced::onSpellAdd(void* data) | 276 | void LLPrefsAdvanced::onSpellAdd(void* data) |
296 | { | 277 | { |
297 | LLPrefsAdvanced* panel = (LLPrefsAdvanced*)data; | 278 | LLPrefsAdvanced* panel = (LLPrefsAdvanced*)data; |