diff options
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(); } |