summaryrefslogtreecommitdiff
path: root/src/gui/trade.cpp
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2010-08-01 18:00:41 -0400
committerChuck Miller <shadowmil@gmail.com>2010-08-01 18:29:00 -0400
commit0e189bbe81c88283438aabb4fec3ba30920d3a36 (patch)
treec3f4b454564c6335c972fadd64fbc82cf23db55e /src/gui/trade.cpp
parent1937ef53c8dd42d986c0a6b061a482a6d8e3c0f7 (diff)
downloadmana-0e189bbe81c88283438aabb4fec3ba30920d3a36.tar.gz
mana-0e189bbe81c88283438aabb4fec3ba30920d3a36.tar.bz2
mana-0e189bbe81c88283438aabb4fec3ba30920d3a36.tar.xz
mana-0e189bbe81c88283438aabb4fec3ba30920d3a36.zip
Reduce localChatTab presence replacing it with the event system
Reviewed-By: Jared Adams
Diffstat (limited to 'src/gui/trade.cpp')
-rw-r--r--src/gui/trade.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/trade.cpp b/src/gui/trade.cpp
index 4a86c235..6d3c7b21 100644
--- a/src/gui/trade.cpp
+++ b/src/gui/trade.cpp
@@ -21,6 +21,7 @@
#include "gui/trade.h"
+#include "eventmanager.h"
#include "inventory.h"
#include "item.h"
#include "localplayer.h"
@@ -32,7 +33,6 @@
#include "gui/setup.h"
#include "gui/widgets/button.h"
-#include "gui/widgets/chattab.h"
#include "gui/widgets/itemcontainer.h"
#include "gui/widgets/label.h"
#include "gui/widgets/scrollarea.h"
@@ -271,9 +271,8 @@ void TradeWindow::action(const gcn::ActionEvent &event)
if (mMyInventory->contains(item))
{
- localChatTab->chatLog(_("Failed adding item. You can not "
- "overlap one kind of item on the window."),
- BY_SERVER);
+ SERVER_NOTICE(_("Failed adding item. You can not "
+ "overlap one kind of item on the window."))
return;
}
@@ -314,8 +313,7 @@ void TradeWindow::action(const gcn::ActionEvent &event)
int curMoney = PlayerInfo::getAttribute(MONEY);
if (v > curMoney)
{
- localChatTab->chatLog(_("You don't have enough money."),
- BY_SERVER);
+ SERVER_NOTICE(_("You don't have enough money."))
v = curMoney;
}
Net::getTradeHandler()->setMoney(v);