summaryrefslogtreecommitdiff
path: root/src/gui/windows/npcselldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-28 20:19:53 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-28 20:19:53 +0300
commit388e14d628a67dd981c2cef7d7553d7cad22e091 (patch)
treee7070285a7a0377dcf6113395e0eecde1d221757 /src/gui/windows/npcselldialog.cpp
parent0bc49539cd5a12175646b035c86e660c8335c9a5 (diff)
downloadmv-388e14d628a67dd981c2cef7d7553d7cad22e091.tar.gz
mv-388e14d628a67dd981c2cef7d7553d7cad22e091.tar.bz2
mv-388e14d628a67dd981c2cef7d7553d7cad22e091.tar.xz
mv-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.cpp7
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();
+}