diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-28 20:19:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-28 20:19:53 +0300 |
commit | 388e14d628a67dd981c2cef7d7553d7cad22e091 (patch) | |
tree | e7070285a7a0377dcf6113395e0eecde1d221757 /src/gui/windows | |
parent | 0bc49539cd5a12175646b035c86e660c8335c9a5 (diff) | |
download | manaplus-388e14d628a67dd981c2cef7d7553d7cad22e091.tar.gz manaplus-388e14d628a67dd981c2cef7d7553d7cad22e091.tar.bz2 manaplus-388e14d628a67dd981c2cef7d7553d7cad22e091.tar.xz manaplus-388e14d628a67dd981c2cef7d7553d7cad22e091.zip |
In sell dialog send close packet before closing this dialog.
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/npcselldialog.cpp | 7 | ||||
-rw-r--r-- | src/gui/windows/npcselldialog.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/windows/npcselldialog.cpp b/src/gui/windows/npcselldialog.cpp index 24627f044..f212bb595 100644 --- a/src/gui/windows/npcselldialog.cpp +++ b/src/gui/windows/npcselldialog.cpp @@ -33,6 +33,7 @@ #include "gui/widgets/shoplistbox.h" #include "gui/widgets/slider.h" +#include "net/buysellhandler.h" #include "net/npchandler.h" #include "resources/iteminfo.h" @@ -108,3 +109,9 @@ void NpcSellDialog::sellAction(const ActionEvent &event) mShopItemList->showPart(scroll); } } + +void NpcSellDialog::close() +{ + buySellHandler->close(); + Window::close(); +} diff --git a/src/gui/windows/npcselldialog.h b/src/gui/windows/npcselldialog.h index 7538320d3..1932ddf42 100644 --- a/src/gui/windows/npcselldialog.h +++ b/src/gui/windows/npcselldialog.h @@ -42,6 +42,8 @@ class NpcSellDialog final : public SellDialog A_DELETE_COPY(NpcSellDialog) + void close() override final; + protected: void sellAction(const ActionEvent &event) override final; |