aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-08-30 15:58:47 -0700
committerJacek Antonelli2010-09-16 20:40:41 -0500
commitdb9dd625892ca3a251148f45d1f852845e9c3ffb (patch)
treeab360c1530cfcbdc7366c73190906d7c2b2cc703 /linden/indra
parentMoved LLInventoryPanel::buildNewViews called with objectp->mType behind LL_DE... (diff)
downloadmeta-impy-db9dd625892ca3a251148f45d1f852845e9c3ffb.zip
meta-impy-db9dd625892ca3a251148f45d1f852845e9c3ffb.tar.gz
meta-impy-db9dd625892ca3a251148f45d1f852845e9c3ffb.tar.bz2
meta-impy-db9dd625892ca3a251148f45d1f852845e9c3ffb.tar.xz
Added debug setting UseLegacyChatLogsFolder for saving chat.txt and IM logs in non-grid-specific folders
Diffstat (limited to 'linden/indra')
-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 76f549d..d6dbe1f 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -844,6 +844,17 @@
844 <key>Value</key> 844 <key>Value</key>
845 <integer>1</integer> 845 <integer>1</integer>
846 </map> 846 </map>
847 <key>UseLegacyChatLogsFolder</key>
848 <map>
849 <key>Comment</key>
850 <string>Enable legacy chat log format (firstname_lastname instead of firstname_lastname@grid). Requires restart</string>
851 <key>Persist</key>
852 <integer>1</integer>
853 <key>Type</key>
854 <string>Boolean</string>
855 <key>Value</key>
856 <integer>0</integer>
857 </map>
847 <key>UseUTCTime</key> 858 <key>UseUTCTime</key>
848 <map> 859 <map>
849 <key>Comment</key> 860 <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 a3fde55..592e938 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());