From 0d5c5aa4e8f66c36d5f78d0da449ee6becdb8298 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 20:23:35 +0300 Subject: move virtual member calls from quitdialog constuctor into postInit. --- src/gui/windows/quitdialog.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gui/windows/quitdialog.cpp') 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); -- cgit v1.2.3-70-g09d2