summaryrefslogtreecommitdiff
path: root/src/gui/confirm_dialog.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-14 15:22:32 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-14 15:22:32 +0000
commit0dd8bc994b172f65d96e11e50e51643c24111907 (patch)
tree0eb6f2d51842b9a448a5f684508cb43cb6a4849f /src/gui/confirm_dialog.cpp
parentf0af955173deacbb11c6eda1766498cd781aa2e5 (diff)
downloadmana-client-0dd8bc994b172f65d96e11e50e51643c24111907.tar.gz
mana-client-0dd8bc994b172f65d96e11e50e51643c24111907.tar.bz2
mana-client-0dd8bc994b172f65d96e11e50e51643c24111907.tar.xz
mana-client-0dd8bc994b172f65d96e11e50e51643c24111907.zip
Mainly separating core GUI classes from game interface.
Diffstat (limited to 'src/gui/confirm_dialog.cpp')
-rw-r--r--src/gui/confirm_dialog.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/confirm_dialog.cpp b/src/gui/confirm_dialog.cpp
index f9513002..967355a6 100644
--- a/src/gui/confirm_dialog.cpp
+++ b/src/gui/confirm_dialog.cpp
@@ -69,12 +69,15 @@ void ConfirmDialog::init(const std::string &msg, gcn::ActionListener *listener)
yesButton->addActionListener(listener);
noButton->addActionListener(listener);
}
-
+
add(userLabel);
add(yesButton);
add(noButton);
-
- setLocationRelativeTo(getParent());
+
+ if (getParent()) {
+ setLocationRelativeTo(getParent());
+ getParent()->moveToTop(this);
+ }
yesButton->requestFocus();
}