summaryrefslogtreecommitdiff
path: root/src/gui/npcintegerdialog.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/npcintegerdialog.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/npcintegerdialog.cpp')
-rw-r--r--src/gui/npcintegerdialog.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/npcintegerdialog.cpp b/src/gui/npcintegerdialog.cpp
index 9778d790..ea06ca8d 100644
--- a/src/gui/npcintegerdialog.cpp
+++ b/src/gui/npcintegerdialog.cpp
@@ -39,6 +39,7 @@ extern NpcTextDialog *npcTextDialog;
NpcIntegerDialog::NpcIntegerDialog(Network *network):
Window(_("NPC Number Request")), mNetwork(network)
{
+ setWindowName("NPCInteger");
mValueField = new IntTextField;
mDecButton = new Button("-", "decvalue", this);
@@ -62,8 +63,6 @@ NpcIntegerDialog::NpcIntegerDialog(Network *network):
place(2, 0, cancelButton);
place(3, 0, okButton);
reflowLayout(175, 0);
-
- setLocationRelativeTo(getParent());
}
void NpcIntegerDialog::setRange(int min, int max)