From 799ff280e470e19fdb617f828962c49f561a22d7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 22:45:26 +0300 Subject: move virtual member calls from skilldialog constuctor into postInit. --- src/game.cpp | 1 + src/gui/windows/skilldialog.cpp | 3 +++ src/gui/windows/skilldialog.h | 2 ++ 3 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/game.cpp b/src/game.cpp index 71d3ff4ff..a54bfd670 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -224,6 +224,7 @@ static void createGuiWindows() shopWindow = new ShopWindow; shopWindow->postInit(); skillDialog = new SkillDialog; + skillDialog->postInit(); minimap = new Minimap; debugWindow = new DebugWindow; debugWindow->postInit(); diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp index ffc76ae81..61227d275 100644 --- a/src/gui/windows/skilldialog.cpp +++ b/src/gui/windows/skilldialog.cpp @@ -306,7 +306,10 @@ SkillDialog::SkillDialog() : place(0, 5, mPointsLabel, 4); place(3, 5, mUseButton); place(4, 5, mIncreaseButton); +} +void SkillDialog::postInit() +{ setLocationRelativeTo(getParent()); loadWindowState(); enableVisibleSound(true); diff --git a/src/gui/windows/skilldialog.h b/src/gui/windows/skilldialog.h index 1569bd5b9..65fc019fd 100644 --- a/src/gui/windows/skilldialog.h +++ b/src/gui/windows/skilldialog.h @@ -52,6 +52,8 @@ class SkillDialog final : public Window, public gcn::ActionListener ~SkillDialog(); + void postInit(); + /** * Called when receiving actions from widget. */ -- cgit v1.2.3-70-g09d2