From 99f81daa99ebe443dd59aa6fba8c8c771a07be9f Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Mon, 7 Oct 2013 05:43:56 -0400 Subject: [PATCH] Feature Request: Add a debug setting, LiruLegacyLogLaunch, to use the old, non-browser method to open chat logs. --- indra/newview/app_settings/settings.xml | 11 +++++++++++ indra/newview/llimpanel.cpp | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 33aadba64..dbd5b2d59 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -731,6 +731,17 @@ Value 1 + LiruLegacyLogLaunch + + Comment + When opening a chat log, open in an external text editor instead of a browser floater(Windows Only). + Persist + 1 + Type + Boolean + Value + 0 + LiruLegacyOutfitStoreObjChanges Comment diff --git a/indra/newview/llimpanel.cpp b/indra/newview/llimpanel.cpp index a394f8fd7..96febbb73 100644 --- a/indra/newview/llimpanel.cpp +++ b/indra/newview/llimpanel.cpp @@ -1089,6 +1089,11 @@ void LLFloaterIMPanel::onFlyoutCommit(LLComboBox* flyout, const LLSD& value) void show_log_browser(const std::string& name, const std::string& id) { + if (gSavedSettings.getBOOL("LiruLegacyLogLaunch")) + { + gViewerWindow->getWindow()->ShellEx("\"" + LLLogChat::makeLogFileName(name) + "\""); + return; + } LLFloaterWebContent::Params p; p.url("file:///" + LLLogChat::makeLogFileName(name)); p.id(id);