Added Open History button to local chat

This commit is contained in:
TighMacFanatic
2011-05-12 13:35:31 -04:00
parent 3fbc4a1dba
commit 3f426fcb67
3 changed files with 18 additions and 1 deletions

View File

@@ -115,6 +115,7 @@ LLFloaterChat::LLFloaterChat(const LLSD& seed)
childSetValue("translate chat", gSavedSettings.getBOOL("TranslateChat"));
childSetVisible("Chat History Editor with mute",FALSE);
childSetAction("toggle_active_speakers_btn", onClickToggleActiveSpeakers, this);
childSetAction("chat_history_open", onClickChatHistoryOpen, this);
setDefaultBtn("Chat");
}
@@ -666,6 +667,16 @@ void LLFloaterChat::onClickToggleActiveSpeakers(void* userdata)
//self->childSetVisible("active_speakers_panel", !self->childIsVisible("active_speakers_panel"));
}
// static
void LLFloaterChat::onClickChatHistoryOpen(void* userdata)
{
char command[256];
sprintf(command, "\"%s\\%s\"", gDirUtilp->getPerAccountChatLogsDir().c_str(), "chat.txt");
gViewerWindow->getWindow()->ShellEx(command);
llinfos << command << llendl;
}
//static
bool LLFloaterChat::visible(LLFloater* instance, const LLSD& key)
{