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/net/ea/guildhandler.cpp | 4 +++- src/net/ea/partyhandler.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/net/ea') diff --git a/src/net/ea/guildhandler.cpp b/src/net/ea/guildhandler.cpp index 4af230773..5c9b94529 100644 --- a/src/net/ea/guildhandler.cpp +++ b/src/net/ea/guildhandler.cpp @@ -22,6 +22,7 @@ #include "net/ea/guildhandler.h" #include "actorspritemanager.h" +#include "configuration.h" #include "localplayer.h" #include "gui/socialwindow.h" @@ -122,7 +123,8 @@ void GuildHandler::processGuildPositionInfo(Net::MessageIn &msg) if (!guildTab && chatWindow) { guildTab = new GuildTab(chatWindow); - guildTab->loadFromLogFile("#Guild"); + if (config.getBoolValue("showChatHistory")) + guildTab->loadFromLogFile("#Guild"); if (player_node) player_node->addGuild(taGuild); memberList(guildId); diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp index 7702bfcee..0b3576e21 100644 --- a/src/net/ea/partyhandler.cpp +++ b/src/net/ea/partyhandler.cpp @@ -22,6 +22,7 @@ #include "net/ea/partyhandler.h" #include "actorspritemanager.h" +#include "configuration.h" #include "localplayer.h" #include "gui/socialwindow.h" @@ -220,7 +221,8 @@ void PartyHandler::processPartySettings(Net::MessageIn &msg) return; Ea::partyTab = new PartyTab(chatWindow); - Ea::partyTab->loadFromLogFile("#Party"); + if (config.getBoolValue("showChatHistory")) + Ea::partyTab->loadFromLogFile("#Party"); } // These seem to indicate the sharing mode for exp and items -- cgit v1.2.3-70-g09d2