From 13c2533f4a2d27f1c9156df2a8ad2851be2016fd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 28 Nov 2012 00:42:01 +0300 Subject: Fix option "Show chat history" for all tabs. --- src/gui/widgets/battletab.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/widgets/battletab.cpp b/src/gui/widgets/battletab.cpp index f02a86134..9cfd60d64 100644 --- a/src/gui/widgets/battletab.cpp +++ b/src/gui/widgets/battletab.cpp @@ -23,6 +23,7 @@ #include "gui/widgets/battletab.h" #include "chatlogger.h" +#include "configuration.h" #include "localplayer.h" #include "main.h" @@ -39,7 +40,8 @@ BattleTab::BattleTab(const Widget2 *const widget) : ChatTab(widget, _("Battle")) { - loadFromLogFile("#Battle"); + if (config.getBoolValue("showChatHistory")) + loadFromLogFile("#Battle"); } BattleTab::~BattleTab() -- cgit v1.2.3-70-g09d2