From e779e35c2405549e15bc64822dc3f696ff4357f5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 19 Oct 2013 14:50:37 +0300 Subject: move virtual member calls from whoisonline constructor into postInit. --- src/game.cpp | 1 + src/gui/windows/whoisonline.cpp | 4 ++++ src/gui/windows/whoisonline.h | 2 ++ 3 files changed, 7 insertions(+) diff --git a/src/game.cpp b/src/game.cpp index d9b4cd271..262d1bb69 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -261,6 +261,7 @@ static void createGuiWindows() botCheckerWindow = new BotCheckerWindow; whoIsOnline = new WhoIsOnline; + whoIsOnline->postInit(); killStats = new KillStats; socialWindow = new SocialWindow; socialWindow->postInit(); diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp index 68979a682..fe76c7ea5 100644 --- a/src/gui/windows/whoisonline.cpp +++ b/src/gui/windows/whoisonline.cpp @@ -101,10 +101,14 @@ WhoIsOnline::WhoIsOnline() : { mCurlError[0] = 0; setWindowName("WhoIsOnline"); +} +void WhoIsOnline::postInit() +{ const int h = 350; const int w = 200; setDefaultSize(w, h, ImageRect::CENTER); + setVisible(false); setCloseButton(true); setResizable(true); diff --git a/src/gui/windows/whoisonline.h b/src/gui/windows/whoisonline.h index 847cd0f32..a986b73d0 100644 --- a/src/gui/windows/whoisonline.h +++ b/src/gui/windows/whoisonline.h @@ -118,6 +118,8 @@ public: */ ~WhoIsOnline(); + void postInit(); + /** * Loads and display online list from the memory buffer. */ -- cgit v1.2.3-70-g09d2