FIRE-18247: Reset chat log location to default when set folder is non-existent

Mon, 02 May 2016 21:54:58 -0700

author
Kadah_Coba <kadah.coba@gmail.com>
date
Mon, 02 May 2016 21:54:58 -0700
changeset 48954
296c54647556
parent 48953
a023d711ba5c
child 48955
5655c935dfc7

FIRE-18247: Reset chat log location to default when set folder is non-existent

indra/newview/llstartup.cpp file | annotate | diff | revisions
     1.1 --- a/indra/newview/llstartup.cpp	Mon Apr 18 12:39:45 2016 +0200
     1.2 +++ b/indra/newview/llstartup.cpp	Mon May 02 21:54:58 2016 -0700
     1.3 @@ -1324,6 +1324,13 @@
     1.4  		{
     1.5  			gDirUtilp->setChatLogsDir(gSavedPerAccountSettings.getString("InstantMessageLogPath"));		
     1.6  		}
     1.7 +		// <FS:KC> FIRE-18247: Handle non-existent chat log location
     1.8 +		if (!gDirUtilp->fileExists(gSavedPerAccountSettings.getString("InstantMessageLogPath")))
     1.9 +		{
    1.10 +			gDirUtilp->setChatLogsDir(gDirUtilp->getOSUserAppDir());
    1.11 +			gSavedPerAccountSettings.setString("InstantMessageLogPath", gDirUtilp->getChatLogsDir());
    1.12 +		}
    1.13 +		// </FS:KC>
    1.14  // <FS:CR> Seperate user directories per grid on OS build
    1.15  #ifdef OPENSIM
    1.16  		gDirUtilp->setPerAccountChatLogsDir(userid, gridlabel);

mercurial