Make open log externally button on conversation preview also work for nearby chat log

meow-7.2.2
Ansariel 2013-07-25 09:42:25 +02:00
parent e5dce89705
commit add9b699d8
1 changed files with 10 additions and 1 deletions

View File

@ -38,6 +38,8 @@
// <FS:CR>
#include "llviewercontrol.h"
#include "llavataractions.h"
#include "llviewerwindow.h"
#include "llwindow.h"
// </FS:CR>
const std::string LL_FCP_COMPLETE_NAME("complete_name");
@ -203,5 +205,12 @@ void LLFloaterConversationPreview::onMoreHistoryBtnClick()
// <FS:CR> Open chat history externally
void (LLFloaterConversationPreview::onBtnOpenExternal())
{
LLAvatarActions::viewChatHistoryExternally(mSessionID);
if (mSessionID.notNull())
{
LLAvatarActions::viewChatHistoryExternally(mSessionID);
}
else
{
gViewerWindow->getWindow()->openFile(LLLogChat::makeLogFileName("chat"));
}
}