summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/windows/npcselldialog.cpp7
-rw-r--r--src/gui/windows/npcselldialog.h2
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;