diff options
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/quitdialog.cpp | 5 | ||||
-rw-r--r-- | src/gui/windows/quitdialog.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/windows/quitdialog.cpp b/src/gui/windows/quitdialog.cpp index 0eeece318..03a7697db 100644 --- a/src/gui/windows/quitdialog.cpp +++ b/src/gui/windows/quitdialog.cpp @@ -114,8 +114,11 @@ QuitDialog::QuitDialog(QuitDialog **const pointerToMe): placer = getPlacer(0, 1); placer(1, 0, mOkButton, 1); placer(2, 0, mCancelButton, 1); - reflowLayout(200, 0); +} + +void QuitDialog::postInit() +{ setLocationRelativeTo(getParent()); setVisible(true); soundManager.playGuiSound(SOUND_SHOW_WINDOW); diff --git a/src/gui/windows/quitdialog.h b/src/gui/windows/quitdialog.h index efbdc586d..db08fa815 100644 --- a/src/gui/windows/quitdialog.h +++ b/src/gui/windows/quitdialog.h @@ -56,6 +56,8 @@ class QuitDialog final : public Window, public gcn::ActionListener, */ ~QuitDialog(); + void postInit(); + /** * Called when receiving actions from the widgets. */ |