summaryrefslogtreecommitdiff
path: root/src/gui/npcpostdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/npcpostdialog.cpp')
-rw-r--r--src/gui/npcpostdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/npcpostdialog.cpp b/src/gui/npcpostdialog.cpp
index c53203be..98c6ac9c 100644
--- a/src/gui/npcpostdialog.cpp
+++ b/src/gui/npcpostdialog.cpp
@@ -76,7 +76,7 @@ NpcPostDialog::NpcPostDialog(int npcId):
add(sendButton);
add(cancelButton);
- setLocationRelativeTo(getParent());
+ center();
instances.push_back(this);
setVisible(true);