diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-14 15:22:32 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-14 15:22:32 +0000 |
commit | 0dd8bc994b172f65d96e11e50e51643c24111907 (patch) | |
tree | 0eb6f2d51842b9a448a5f684508cb43cb6a4849f /src/gui/confirm_dialog.cpp | |
parent | f0af955173deacbb11c6eda1766498cd781aa2e5 (diff) | |
download | mana-0dd8bc994b172f65d96e11e50e51643c24111907.tar.gz mana-0dd8bc994b172f65d96e11e50e51643c24111907.tar.bz2 mana-0dd8bc994b172f65d96e11e50e51643c24111907.tar.xz mana-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.cpp | 9 |
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(); } |