aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/app_settings/settings.xml11
-rw-r--r--linden/indra/newview/llprefsim.cpp12
-rw-r--r--linden/indra/newview/llstartup.cpp9
3 files changed, 29 insertions, 3 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index 29d2f07..b042fb2 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -882,6 +882,17 @@
882 <key>Value</key> 882 <key>Value</key>
883 <integer>1</integer> 883 <integer>1</integer>
884 </map> 884 </map>
885 <key>UseLegacyChatLogsFolder</key>
886 <map>
887 <key>Comment</key>
888 <string>Enable legacy chat log format (firstname_lastname instead of firstname_lastname@grid). Requires restart</string>
889 <key>Persist</key>
890 <integer>1</integer>
891 <key>Type</key>
892 <string>Boolean</string>
893 <key>Value</key>
894 <integer>0</integer>
895 </map>
885 <key>UseUTCTime</key> 896 <key>UseUTCTime</key>
886 <map> 897 <map>
887 <key>Comment</key> 898 <key>Comment</key>
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();
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp
index 0464e99..301e67c 100644
--- a/linden/indra/newview/llstartup.cpp
+++ b/linden/indra/newview/llstartup.cpp
@@ -936,7 +936,14 @@ bool idle_startup()
936 gDirUtilp->setChatLogsDir(gSavedPerAccountSettings.getString("InstantMessageLogPath")); 936 gDirUtilp->setChatLogsDir(gSavedPerAccountSettings.getString("InstantMessageLogPath"));
937 } 937 }
938 938
939 gDirUtilp->setPerAccountChatLogsDir(gHippoGridManager->getCurrentGridNick(), firstname, lastname); 939 if (gSavedSettings.getBOOL("UseLegacyChatLogsFolder"))
940 {
941 gDirUtilp->setPerAccountChatLogsDir(LLStringUtil::null, firstname, lastname);
942 }
943 else
944 {
945 gDirUtilp->setPerAccountChatLogsDir(gHippoGridManager->getCurrentGridNick(), firstname, lastname);
946 }
940 947
941 LLFile::mkdir(gDirUtilp->getChatLogsDir()); 948 LLFile::mkdir(gDirUtilp->getChatLogsDir());
942 LLFile::mkdir(gDirUtilp->getPerAccountChatLogsDir()); 949 LLFile::mkdir(gDirUtilp->getPerAccountChatLogsDir());