summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-19 14:50:37 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:25 +0300
commite779e35c2405549e15bc64822dc3f696ff4357f5 (patch)
tree1729ee852e133de6e0f3b654728f26e238e205a3 /src
parent804867a6bbf0f7ce51f72bcccd355eaadef418c6 (diff)
downloadmv-e779e35c2405549e15bc64822dc3f696ff4357f5.tar.gz
mv-e779e35c2405549e15bc64822dc3f696ff4357f5.tar.bz2
mv-e779e35c2405549e15bc64822dc3f696ff4357f5.tar.xz
mv-e779e35c2405549e15bc64822dc3f696ff4357f5.zip
move virtual member calls from whoisonline constructor into postInit.
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp1
-rw-r--r--src/gui/windows/whoisonline.cpp4
-rw-r--r--src/gui/windows/whoisonline.h2
3 files changed, 7 insertions, 0 deletions
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.
*/