diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-11-28 00:42:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-11-28 00:42:01 +0300 |
commit | 13c2533f4a2d27f1c9156df2a8ad2851be2016fd (patch) | |
tree | 0813ea503e928877f099c474fdf8a7d8c0d1ab12 /src/gui/widgets | |
parent | 1fd495484bb43a1e0b0d088874d7bc588d8d38c9 (diff) | |
download | manaplus-13c2533f4a2d27f1c9156df2a8ad2851be2016fd.tar.gz manaplus-13c2533f4a2d27f1c9156df2a8ad2851be2016fd.tar.bz2 manaplus-13c2533f4a2d27f1c9156df2a8ad2851be2016fd.tar.xz manaplus-13c2533f4a2d27f1c9156df2a8ad2851be2016fd.zip |
Fix option "Show chat history" for all tabs.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/battletab.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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() |