summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 00:58:09 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:19 +0300
commite87159e68402c64875ec2553df06101ac407f860 (patch)
tree0464948bc409a0417c78bd60cd398fcb931d8771 /src/gui/windows
parentaac2975ea79f75c403cf31ff37ac15c6ba601782 (diff)
downloadplus-e87159e68402c64875ec2553df06101ac407f860.tar.gz
plus-e87159e68402c64875ec2553df06101ac407f860.tar.bz2
plus-e87159e68402c64875ec2553df06101ac407f860.tar.xz
plus-e87159e68402c64875ec2553df06101ac407f860.zip
move virtual member calls from didyouknowwindow constuctor into postInit.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/didyouknowwindow.cpp4
-rw-r--r--src/gui/windows/didyouknowwindow.h2
2 files changed, 6 insertions, 0 deletions
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.
*/