diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp index 137c4a92e7..87a980cd76 100644 --- a/indra/newview/llfloaterpreference.cpp +++ b/indra/newview/llfloaterpreference.cpp @@ -307,6 +307,9 @@ LLFloaterPreference::LLFloaterPreference(const LLSD& key) // mCommitCallbackRegistrar.add("Pref.ClearCache", boost::bind(&LLFloaterPreference::onClickClearCache, this)); mCommitCallbackRegistrar.add("Pref.WebClearCache", boost::bind(&LLFloaterPreference::onClickBrowserClearCache, this)); mCommitCallbackRegistrar.add("Pref.SetCache", boost::bind(&LLFloaterPreference::onClickSetCache, this)); + mCommitCallbackRegistrar.add("Pref.BrowseCache", boost::bind(&LLFloaterPreference::onClickBrowseCache, this)); + mCommitCallbackRegistrar.add("Pref.BrowseCrashLogs", boost::bind(&LLFloaterPreference::onClickBrowseCrashLogs, this)); + mCommitCallbackRegistrar.add("Pref.BrowseSettingsDir", boost::bind(&LLFloaterPreference::onClickBrowseSettingsDir, this)); mCommitCallbackRegistrar.add("Pref.ResetCache", boost::bind(&LLFloaterPreference::onClickResetCache, this)); mCommitCallbackRegistrar.add("Pref.ClearCache", boost::bind(&LLFloaterPreference::onClickClearCache, this)); // mCommitCallbackRegistrar.add("Pref.ClickSkin", boost::bind(&LLFloaterPreference::onClickSkin, this,_1, _2)); @@ -784,7 +787,18 @@ void LLFloaterPreference::onClickSetCache() gSavedSettings.setString("CacheLocationTopFolder", top_folder); } } - +void LLFloaterPreference::onClickBrowseCache() +{ + //todo: add window open (JL) +} +void LLFloaterPreference::onClickBrowseCrashLogs() +{ + //todo: add window open (JL) +} +void LLFloaterPreference::onClickBrowseSettingsDir() +{ + //todo: add window open (JL) +} void LLFloaterPreference::onClickResetCache() { if (!gSavedSettings.getString("CacheLocation").empty()) diff --git a/indra/newview/llfloaterpreference.h b/indra/newview/llfloaterpreference.h index 5b5b59c58f..5488ab6909 100644 --- a/indra/newview/llfloaterpreference.h +++ b/indra/newview/llfloaterpreference.h @@ -116,8 +116,11 @@ public: void setCacheLocation(const LLStringExplicit& location); void onClickSetCache(); + void onClickBrowseCache(); + void onClickBrowseCrashLogs(); void onClickResetCache(); void onClickClearCache(); + void onClickBrowseSettingsDir(); void onClickSkin(LLUICtrl* ctrl,const LLSD& userdata); void onSelectSkin(); void onClickSetKey(); diff --git a/indra/newview/skins/default/xui/en/panel_preferences_privacy.xml b/indra/newview/skins/default/xui/en/panel_preferences_privacy.xml index f86be6f409..d9c19e9a2c 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_privacy.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_privacy.xml @@ -150,7 +150,7 @@ top_pad="5" width="250"/>