summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-05 16:47:19 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-05 16:47:19 +0300
commit7ec8cec84e27c3460c6d51b3c58e0644de247102 (patch)
tree87029a85c0f9d153e232bbbc52e09d26792d4ebb /src/gui
parent62da739fc73e269959bbbe8a6b741f50c5e82238 (diff)
downloadplus-7ec8cec84e27c3460c6d51b3c58e0644de247102.tar.gz
plus-7ec8cec84e27c3460c6d51b3c58e0644de247102.tar.bz2
plus-7ec8cec84e27c3460c6d51b3c58e0644de247102.tar.xz
plus-7ec8cec84e27c3460c6d51b3c58e0644de247102.zip
Restore visible state for some windows after restart.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/botcheckerwindow.cpp1
-rw-r--r--src/gui/killstats.cpp1
-rw-r--r--src/gui/whoisonline.cpp4
3 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/botcheckerwindow.cpp b/src/gui/botcheckerwindow.cpp
index 7c0339ead..8bc0d892e 100644
--- a/src/gui/botcheckerwindow.cpp
+++ b/src/gui/botcheckerwindow.cpp
@@ -269,6 +269,7 @@ BotCheckerWindow::BotCheckerWindow():
int w = 500;
int h = 250;
+ setSaveVisible(true);
mLastUpdateTime = 0;
mNeedUpdate = false;
diff --git a/src/gui/killstats.cpp b/src/gui/killstats.cpp
index b9ce7c2a7..7d0a9fe11 100644
--- a/src/gui/killstats.cpp
+++ b/src/gui/killstats.cpp
@@ -55,6 +55,7 @@ KillStats::KillStats():
setWindowName("Kill stats");
setCloseButton(true);
setResizable(true);
+ setSaveVisible(true);
setStickyButtonLock(true);
setDefaultSize(250, 250, 350, 300);
diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp
index 1e9f686e4..ff855ed05 100644
--- a/src/gui/whoisonline.cpp
+++ b/src/gui/whoisonline.cpp
@@ -95,9 +95,11 @@ WhoIsOnline::WhoIsOnline():
const int w = 200;
setDefaultSize(w, h, ImageRect::CENTER);
// setContentSize(w, h);
+ setVisible(false);
setCloseButton(true);
setResizable(true);
setStickyButtonLock(true);
+ setSaveVisible(true);
mUpdateButton = new Button(_("Update"), "update", this);
mUpdateButton->setEnabled(false);
@@ -563,4 +565,4 @@ void WhoIsOnline::optionChanged(const std::string &name)
{
if (name == "updateOnlineList")
mUpdateOnlineList = config.getBoolValue("updateOnlineList");
-} \ No newline at end of file
+}