Fix ups for 6525ccc384
If log_path is empty, we shouldn't setChatLogsDir to it. In fact, this may have been the cause of something Nomade Zhao brought up. Also, InstantMessageLogPathAnyAccount was accidentally being set as a PerAccount
This commit is contained in:
@@ -233,8 +233,11 @@ void LLPrefsIMImpl::apply()
|
||||
else
|
||||
{
|
||||
const std::string log_path = childGetText("log_path_string");
|
||||
gSavedPerAccountSettings.setString("InstantMessageLogPathAnyAccount", log_path);
|
||||
gDirUtilp->setChatLogsDir(log_path);
|
||||
if (!log_path.empty())
|
||||
{
|
||||
gSavedSettings.setString("InstantMessageLogPathAnyAccount", log_path);
|
||||
gDirUtilp->setChatLogsDir(log_path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user