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/npcselldialog.cpp | |
parent | 0bc49539cd5a12175646b035c86e660c8335c9a5 (diff) | |
download | manaverse-388e14d628a67dd981c2cef7d7553d7cad22e091.tar.gz manaverse-388e14d628a67dd981c2cef7d7553d7cad22e091.tar.bz2 manaverse-388e14d628a67dd981c2cef7d7553d7cad22e091.tar.xz manaverse-388e14d628a67dd981c2cef7d7553d7cad22e091.zip |
In sell dialog send close packet before closing this dialog.
Diffstat (limited to 'src/gui/windows/npcselldialog.cpp')
-rw-r--r-- | src/gui/windows/npcselldialog.cpp | 7 |
1 files changed, 7 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(); +} |