summaryrefslogtreecommitdiff
path: root/src/gui/npcstringdialog.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-10 09:29:15 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-10 09:29:15 -0600
commit343d290f639646b9a3a90c9402dfc8e76989bdcb (patch)
tree7d98bd322007a7f219153c117c3589ab1dd04bed /src/gui/npcstringdialog.cpp
parentcf49b996e41f6e28aa67fb2d6891c1b28e65d520 (diff)
downloadmana-343d290f639646b9a3a90c9402dfc8e76989bdcb.tar.gz
mana-343d290f639646b9a3a90c9402dfc8e76989bdcb.tar.bz2
mana-343d290f639646b9a3a90c9402dfc8e76989bdcb.tar.xz
mana-343d290f639646b9a3a90c9402dfc8e76989bdcb.zip
Don't center the NPC interraction dialogs
Use the last location the user gave instead. Also, do the same for the inventory dialog.
Diffstat (limited to 'src/gui/npcstringdialog.cpp')
-rw-r--r--src/gui/npcstringdialog.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/npcstringdialog.cpp b/src/gui/npcstringdialog.cpp
index aec30826..525a73a0 100644
--- a/src/gui/npcstringdialog.cpp
+++ b/src/gui/npcstringdialog.cpp
@@ -39,6 +39,7 @@ extern NpcTextDialog *npcTextDialog;
NpcStringDialog::NpcStringDialog(Network *network):
Window(_("NPC Text Request")), mNetwork(network)
{
+ setWindowName("NPCList");
mValueField = new TextField("");
gcn::Button *okButton = new Button(_("OK"), "ok", this);
@@ -48,8 +49,6 @@ NpcStringDialog::NpcStringDialog(Network *network):
place(1, 1, cancelButton);
place(2, 1, okButton);
reflowLayout(175, 0);
-
- setLocationRelativeTo(getParent());
}
std::string NpcStringDialog::getValue()