From 3c912139aef92a3e070ade966c91c297b7a5310c Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 10 May 2009 20:29:14 +0200 Subject: Fixed the resize grip of the party window It wasn't re-added after doing a clear. Also, don't leak all the PartyMember and Avatar instances. --- src/net/ea/partyhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/ea/partyhandler.cpp') diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp index c906eaef..e5b20a38 100644 --- a/src/net/ea/partyhandler.cpp +++ b/src/net/ea/partyhandler.cpp @@ -86,7 +86,7 @@ void PartyHandler::handleMessage(MessageIn &msg) if (!partyWindow) break; - partyWindow->clear(); + partyWindow->clearMembers(); int length = msg.readInt16(); std::string party = msg.readString(24); @@ -231,7 +231,7 @@ void PartyHandler::handleMessage(MessageIn &msg) if (id == player_node->getId()) { player_node->setInParty(false); - partyWindow->clear(); + partyWindow->clearMembers(); partyWindow->setVisible(false); partyTab->chatLog(_("You have left the party."), BY_SERVER); } -- cgit v1.2.3-70-g09d2