summaryrefslogtreecommitdiff
path: root/src/gui/ok_dialog.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-19 11:43:41 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-19 11:43:41 +0000
commitd42e9ea834a07c6f60dd5248db6520d1ff423ac4 (patch)
tree7de19d851aecae83bc8467d70c9a718ebff98205 /src/gui/ok_dialog.cpp
parent32ca8ca9551070ba1086cd5b6c973620052061ed (diff)
downloadmana-client-d42e9ea834a07c6f60dd5248db6520d1ff423ac4.tar.gz
mana-client-d42e9ea834a07c6f60dd5248db6520d1ff423ac4.tar.bz2
mana-client-d42e9ea834a07c6f60dd5248db6520d1ff423ac4.tar.xz
mana-client-d42e9ea834a07c6f60dd5248db6520d1ff423ac4.zip
Made item amount window a modal dialog and removed support for old map format.
Diffstat (limited to 'src/gui/ok_dialog.cpp')
-rw-r--r--src/gui/ok_dialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/ok_dialog.cpp b/src/gui/ok_dialog.cpp
index e7ff1449..8b7ef6d4 100644
--- a/src/gui/ok_dialog.cpp
+++ b/src/gui/ok_dialog.cpp
@@ -56,15 +56,15 @@ void OkDialog::init(const std::string &msg, gcn::ActionListener *listener)
(w - okButton->getWidth()) / 2,
h - 5 - okButton->getHeight());
- okButton->setEventId("ok");
+ okButton->setEventId("ok");
okButton->addActionListener(this);
if (listener) {
okButton->addActionListener(listener);
}
-
+
add(userLabel);
add(okButton);
-
+
setLocationRelativeTo(getParent());
okButton->requestFocus();
}