aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llprefsim.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llprefsim.cpp')
-rw-r--r--linden/indra/newview/llprefsim.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/linden/indra/newview/llprefsim.cpp b/linden/indra/newview/llprefsim.cpp
index 045139c..e7c39e2 100644
--- a/linden/indra/newview/llprefsim.cpp
+++ b/linden/indra/newview/llprefsim.cpp
@@ -190,8 +190,16 @@ void LLPrefsIMImpl::apply()
190 190
191 gDirUtilp->setChatLogsDir(gSavedPerAccountSettings.getString("InstantMessageLogPath")); 191 gDirUtilp->setChatLogsDir(gSavedPerAccountSettings.getString("InstantMessageLogPath"));
192 192
193 gDirUtilp->setPerAccountChatLogsDir(gHippoGridManager->getCurrentGridNick(), gSavedSettings.getString("FirstName"), 193 if (gSavedSettings.getBOOL("UseLegacyChatLogsFolder"))
194 gSavedSettings.getString("LastName") ); 194 {
195 gDirUtilp->setPerAccountChatLogsDir(LLStringUtil::null,
196 gSavedSettings.getString("FirstName"), gSavedSettings.getString("LastName") );
197 }
198 else
199 {
200 gDirUtilp->setPerAccountChatLogsDir(gHippoGridManager->getCurrentGridNick(),
201 gSavedSettings.getString("FirstName"), gSavedSettings.getString("LastName") );
202 }
195 LLFile::mkdir(gDirUtilp->getPerAccountChatLogsDir()); 203 LLFile::mkdir(gDirUtilp->getPerAccountChatLogsDir());
196 204
197 bool new_im_via_email = childGetValue("send_im_to_email").asBoolean(); 205 bool new_im_via_email = childGetValue("send_im_to_email").asBoolean();