summaryrefslogtreecommitdiff
path: root/src/guildmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-11-28 00:42:01 +0300
committerAndrei Karas <akaras@inbox.ru>2012-11-28 00:42:01 +0300
commit13c2533f4a2d27f1c9156df2a8ad2851be2016fd (patch)
tree0813ea503e928877f099c474fdf8a7d8c0d1ab12 /src/guildmanager.cpp
parent1fd495484bb43a1e0b0d088874d7bc588d8d38c9 (diff)
downloadmv-13c2533f4a2d27f1c9156df2a8ad2851be2016fd.tar.gz
mv-13c2533f4a2d27f1c9156df2a8ad2851be2016fd.tar.bz2
mv-13c2533f4a2d27f1c9156df2a8ad2851be2016fd.tar.xz
mv-13c2533f4a2d27f1c9156df2a8ad2851be2016fd.zip
Fix option "Show chat history" for all tabs.
Diffstat (limited to 'src/guildmanager.cpp')
-rw-r--r--src/guildmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/guildmanager.cpp b/src/guildmanager.cpp
index 27b10681b..35ac7f1f0 100644
--- a/src/guildmanager.cpp
+++ b/src/guildmanager.cpp
@@ -200,7 +200,8 @@ void GuildManager::createTab(Guild *const guild)
if (!mTab)
{
mTab = new GuildChatTab(chatWindow);
- mTab->loadFromLogFile("#Guild");
+ if (config.getBoolValue("showChatHistory"))
+ mTab->loadFromLogFile("#Guild");
if (player_node)
player_node->addGuild(guild);
}