From e87159e68402c64875ec2553df06101ac407f860 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 00:58:09 +0300 Subject: move virtual member calls from didyouknowwindow constuctor into postInit. --- src/client.cpp | 1 + src/gui/windows/didyouknowwindow.cpp | 4 ++++ src/gui/windows/didyouknowwindow.h | 2 ++ 3 files changed, 7 insertions(+) (limited to 'src') diff --git a/src/client.cpp b/src/client.cpp index 09355f958..9a19c0edc 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -670,6 +670,7 @@ void Client::gameInit() setupWindow = new Setup; helpWindow = new HelpWindow; didYouKnowWindow = new DidYouKnowWindow; + didYouKnowWindow->postInit(); soundManager.playMusic(branding.getValue( "loginMusic", "Magick - Real.ogg")); diff --git a/src/gui/windows/didyouknowwindow.cpp b/src/gui/windows/didyouknowwindow.cpp index 41d515df2..7dfc2e681 100644 --- a/src/gui/windows/didyouknowwindow.cpp +++ b/src/gui/windows/didyouknowwindow.cpp @@ -95,6 +95,10 @@ DidYouKnowWindow::DidYouKnowWindow() : loadWindowState(); enableVisibleSound(true); +} + +void DidYouKnowWindow::postInit() +{ widgetResized(gcn::Event(nullptr)); } diff --git a/src/gui/windows/didyouknowwindow.h b/src/gui/windows/didyouknowwindow.h index ed5b82913..b0376f068 100644 --- a/src/gui/windows/didyouknowwindow.h +++ b/src/gui/windows/didyouknowwindow.h @@ -48,6 +48,8 @@ class DidYouKnowWindow final : public Window, A_DELETE_COPY(DidYouKnowWindow) + void postInit() override; + /** * Called when receiving actions from the widgets. */ -- cgit v1.2.3-70-g09d2