From 0bc49539cd5a12175646b035c86e660c8335c9a5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 28 Mar 2015 19:21:58 +0300 Subject: In buy dialog send close packet before closing this dialog. --- src/gui/windows/buydialog.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/gui/windows/buydialog.cpp') diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp index b885cc8a6..809ddf88a 100644 --- a/src/gui/windows/buydialog.cpp +++ b/src/gui/windows/buydialog.cpp @@ -385,6 +385,26 @@ void BuyDialog::sort() } } +void BuyDialog::close() +{ + switch (mNpcId) + { + case Nick: + case Items: + break; + case Market: + marketHandler->close(); + break; + case Cash: + cashShopHandler->close(); + break; + default: + buySellHandler->close(); + break; + } + Window::close(); +} + void BuyDialog::action(const ActionEvent &event) { const std::string &eventId = event.getId(); -- cgit v1.2.3-60-g2f50