summaryrefslogtreecommitdiff
path: root/src/gui/windows/buyselldialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/buyselldialog.cpp')
-rw-r--r--src/gui/windows/buyselldialog.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/windows/buyselldialog.cpp b/src/gui/windows/buyselldialog.cpp
index 92f6503bb..238389ce9 100644
--- a/src/gui/windows/buyselldialog.cpp
+++ b/src/gui/windows/buyselldialog.cpp
@@ -26,6 +26,8 @@
#include "net/net.h"
#include "net/npchandler.h"
+#include "gui/windows/setupwindow.h"
+
#include "gui/widgets/button.h"
#include "utils/gettext.h"
@@ -61,6 +63,9 @@ void BuySellDialog::init()
setWindowName("BuySell");
setCloseButton(true);
+ if (setupWindow)
+ setupWindow->registerWindowForReset(this);
+
static const char *buttonNames[] =
{
// TRANSLATORS: shop window button