From add9b699d828e4e10cf73d995e2e421e1912d772 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Thu, 25 Jul 2013 09:42:25 +0200 Subject: [PATCH] Make open log externally button on conversation preview also work for nearby chat log --- indra/newview/llfloaterconversationpreview.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/indra/newview/llfloaterconversationpreview.cpp b/indra/newview/llfloaterconversationpreview.cpp index 2b537727d4..5282a07e80 100755 --- a/indra/newview/llfloaterconversationpreview.cpp +++ b/indra/newview/llfloaterconversationpreview.cpp @@ -38,6 +38,8 @@ // #include "llviewercontrol.h" #include "llavataractions.h" +#include "llviewerwindow.h" +#include "llwindow.h" // const std::string LL_FCP_COMPLETE_NAME("complete_name"); @@ -203,5 +205,12 @@ void LLFloaterConversationPreview::onMoreHistoryBtnClick() // Open chat history externally void (LLFloaterConversationPreview::onBtnOpenExternal()) { - LLAvatarActions::viewChatHistoryExternally(mSessionID); + if (mSessionID.notNull()) + { + LLAvatarActions::viewChatHistoryExternally(mSessionID); + } + else + { + gViewerWindow->getWindow()->openFile(LLLogChat::makeLogFileName("chat")); + } }