Adjust chat log opening functions to use LLLogChat functions to determine log file
This eliminates the possibility of the history button not opening the log file, which has been reported in the past. This also corrects cases where log files named with date would not be opened.
This commit is contained in:
@@ -1079,12 +1079,10 @@ void LLFloaterIMPanel::onClickHistory()
|
||||
{
|
||||
if (mOtherParticipantUUID.notNull())
|
||||
{
|
||||
char command[256];
|
||||
// [Ansariel: Display name support]
|
||||
//std::string fullname(gDirUtilp->getScrubbedFileName(getTitle()));
|
||||
std::string fullname(gDirUtilp->getScrubbedFileName(mSessionLabel));
|
||||
//std::string command("\"" + LLLogChat::makeLogFileName(getTitle()) + "\"");
|
||||
std::string command("\"" + LLLogChat::makeLogFileName(mSessionLabel) + "\"");
|
||||
// [/Ansariel: Display name support]
|
||||
sprintf(command, "\"%s%s%s.txt\"", gDirUtilp->getPerAccountChatLogsDir().c_str(), gDirUtilp->getDirDelimiter().c_str(), fullname.c_str());
|
||||
gViewerWindow->getWindow()->ShellEx(command);
|
||||
|
||||
llinfos << command << llendl;
|
||||
|
||||
Reference in New Issue
Block a user