diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-14 17:27:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-14 17:27:52 +0300 |
commit | 0381a0de69cc21c8886fb0a68cda450d3135d55a (patch) | |
tree | 7c9883d4043b925b9148715664b621876c680d20 /src/gui/widgets/tabs/chat/tradetab.cpp | |
parent | ecac984465f2a9f51940515abdf7552e5c6341a1 (diff) | |
download | mv-0381a0de69cc21c8886fb0a68cda450d3135d55a.tar.gz mv-0381a0de69cc21c8886fb0a68cda450d3135d55a.tar.bz2 mv-0381a0de69cc21c8886fb0a68cda450d3135d55a.tar.xz mv-0381a0de69cc21c8886fb0a68cda450d3135d55a.zip |
For trade tab use channel to send messages.
Diffstat (limited to 'src/gui/widgets/tabs/chat/tradetab.cpp')
-rw-r--r-- | src/gui/widgets/tabs/chat/tradetab.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/widgets/tabs/chat/tradetab.cpp b/src/gui/widgets/tabs/chat/tradetab.cpp index 8512d3f6a..414c97d9d 100644 --- a/src/gui/widgets/tabs/chat/tradetab.cpp +++ b/src/gui/widgets/tabs/chat/tradetab.cpp @@ -24,6 +24,10 @@ #include "gui/chatconsts.h" +#include "gui/windows/chatwindow.h" + +#include "net/chathandler.h" + #include "utils/gettext.h" #include "debug.h" @@ -42,6 +46,5 @@ TradeTab::~TradeTab() void TradeTab::handleInput(const std::string &msg) { - std::string str("\302\202" + msg); - ChatTab::handleInput(str); + chatHandler->channelMessage(mChannelName, ChatWindow::doReplace(msg)); } |