summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorCho <cho@lindenlab.com>2013-02-12 17:48:53 +0000
committerCho <cho@lindenlab.com>2013-02-12 17:48:53 +0000
commitf3ef72bffa27c8818bb44270d76d9eff469262a0 (patch)
tree6f6e43318d7422d8c5507f41017df23a67e3958f /indra/newview
parenta5913144598e453b55a5e447a6ad2f34fb750722 (diff)
parent8aaedd0a5fc73f45684c029ca9f349d793e61e93 (diff)
merging
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/llfloaterpreference.cpp13
-rw-r--r--indra/newview/llfloaterpreference.h3
2 files changed, 12 insertions, 4 deletions
diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp
index da24bb3b8f..662d2df5d2 100755
--- a/indra/newview/llfloaterpreference.cpp
+++ b/indra/newview/llfloaterpreference.cpp
@@ -646,6 +646,9 @@ void LLFloaterPreference::cancel()
LLFloaterPathfindingConsole* pPathfindingConsole = pathfindingConsoleHandle.get();
pPathfindingConsole->onRegionBoundaryCross();
}
+
+ std::string dir_name(gSavedPerAccountSettings.getString("InstantMessageLogPath"));
+ updateLogLocation(dir_name);
}
void LLFloaterPreference::onOpen(const LLSD& key)
@@ -1443,16 +1446,20 @@ void LLFloaterPreference::onClickLogPath()
std::string dir_name = picker.getDirName();
gSavedPerAccountSettings.setString("InstantMessageLogPath", dir_name);
+ updateLogLocation(dir_name);
+ // enable/disable 'Delete transcripts button
+ updateDeleteTranscriptsButton();
+}
+
+void LLFloaterPreference::updateLogLocation(const std::string& dir_name)
+{
gDirUtilp->setChatLogsDir(dir_name);
gDirUtilp->updatePerAccountChatLogsDir();
LLFile::mkdir(gDirUtilp->getPerAccountChatLogsDir());
// refresh IM floaters with new logs from files from new selected directory
LLFloaterIMSessionTab::processChatHistoryStyleUpdate(true);
-
- // enable/disable 'Delete transcripts button
- updateDeleteTranscriptsButton();
}
void LLFloaterPreference::setPersonalInfo(const std::string& visibility, bool im_via_email)
diff --git a/indra/newview/llfloaterpreference.h b/indra/newview/llfloaterpreference.h
index f9f1d52244..dbd87f74a1 100644
--- a/indra/newview/llfloaterpreference.h
+++ b/indra/newview/llfloaterpreference.h
@@ -142,7 +142,8 @@ public:
void onClickDisablePopup();
void resetAllIgnored();
void setAllIgnored();
- void onClickLogPath();
+ void onClickLogPath();
+ void updateLogLocation(const std::string& dir_name);
void enableHistory();
void setPersonalInfo(const std::string& visibility, bool im_via_email);
void refreshEnabledState();