summaryrefslogtreecommitdiff
path: root/src/gui/windows/buydialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-28 19:21:58 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-28 20:10:55 +0300
commit0bc49539cd5a12175646b035c86e660c8335c9a5 (patch)
tree9d763cc29e04ba63c176cfdff39493903de6b56e /src/gui/windows/buydialog.cpp
parent089fb2cf90894e14c302f35748e26dc1fc2f71ab (diff)
downloadmanaverse-0bc49539cd5a12175646b035c86e660c8335c9a5.tar.gz
manaverse-0bc49539cd5a12175646b035c86e660c8335c9a5.tar.bz2
manaverse-0bc49539cd5a12175646b035c86e660c8335c9a5.tar.xz
manaverse-0bc49539cd5a12175646b035c86e660c8335c9a5.zip
In buy dialog send close packet before closing this dialog.
Diffstat (limited to 'src/gui/windows/buydialog.cpp')
-rw-r--r--src/gui/windows/buydialog.cpp20
1 files changed, 20 insertions, 0 deletions
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();