From ef190a13443d1ae9522c98ac5fab5a8c6181cda1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Sep 2014 19:16:16 +0300 Subject: eathena: fix party tab creation. --- src/net/ea/partyhandler.cpp | 7 +++++++ src/net/ea/partyhandler.h | 2 ++ 2 files changed, 9 insertions(+) (limited to 'src/net/ea') diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp index 5c5aaf80b..60356cf61 100644 --- a/src/net/ea/partyhandler.cpp +++ b/src/net/ea/partyhandler.cpp @@ -324,4 +324,11 @@ ChatTab *PartyHandler::getTab() const return partyTab; } +void PartyHandler::createTab() const +{ + Ea::partyTab = new Ea::PartyTab(chatWindow); + if (config.getBoolValue("showChatHistory")) + Ea::partyTab->loadFromLogFile("#Party"); +} + } // namespace Ea diff --git a/src/net/ea/partyhandler.h b/src/net/ea/partyhandler.h index fbe77d376..c5cf606b4 100644 --- a/src/net/ea/partyhandler.h +++ b/src/net/ea/partyhandler.h @@ -79,6 +79,8 @@ class PartyHandler notfinal : public Net::PartyHandler void processPartySettingsContinue(const int16_t exp, const int16_t item); + void createTab() const; + protected: Net::PartyShare::Type mShareExp; Net::PartyShare::Type mShareItems; -- cgit v1.2.3-70-g09d2