summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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.
*/