summaryrefslogtreecommitdiff
path: root/src/gui/windows/npcpostdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/npcpostdialog.cpp')
-rw-r--r--src/gui/windows/npcpostdialog.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/windows/npcpostdialog.cpp b/src/gui/windows/npcpostdialog.cpp
index 327fcbf3f..7bca90500 100644
--- a/src/gui/windows/npcpostdialog.cpp
+++ b/src/gui/windows/npcpostdialog.cpp
@@ -22,6 +22,8 @@
#include "gui/windows/npcpostdialog.h"
+#include "gui/windows/setupwindow.h"
+
#include "gui/widgets/button.h"
#include "gui/widgets/label.h"
#include "gui/widgets/textbox.h"
@@ -52,6 +54,9 @@ NpcPostDialog::NpcPostDialog(const int npcId) :
void NpcPostDialog::postInit()
{
+ if (setupWindow)
+ setupWindow->registerWindowForReset(this);
+
// create text field for receiver
// TRANSLATORS: label in npc post dialog
Label *const senderText = new Label(this, _("To:"));