diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-18 00:02:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-19 15:12:18 +0300 |
commit | 35e551f6a0a7836520c66f523c37a4952a3e5c34 (patch) | |
tree | a55e5587bcdb07c84e160749f5250b56e3b06b43 /src/gui/windows/debugwindow.cpp | |
parent | b0e9e564c2cf081e512798f157dbbaebd7b99983 (diff) | |
download | plus-35e551f6a0a7836520c66f523c37a4952a3e5c34.tar.gz plus-35e551f6a0a7836520c66f523c37a4952a3e5c34.tar.bz2 plus-35e551f6a0a7836520c66f523c37a4952a3e5c34.tar.xz plus-35e551f6a0a7836520c66f523c37a4952a3e5c34.zip |
move virtual member calls from debugwindow constuctor into postInit.
Diffstat (limited to 'src/gui/windows/debugwindow.cpp')
-rw-r--r-- | src/gui/windows/debugwindow.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/windows/debugwindow.cpp b/src/gui/windows/debugwindow.cpp index 24a77a402..cc9003b9a 100644 --- a/src/gui/windows/debugwindow.cpp +++ b/src/gui/windows/debugwindow.cpp @@ -73,7 +73,6 @@ DebugWindow::DebugWindow() : mTabs->addTab(std::string(_("Net")), mNetWidget); mTabs->setDimension(gcn::Rectangle(0, 0, 600, 300)); - add(mTabs); const int w = mDimension.width; const int h = mDimension.height; @@ -94,6 +93,11 @@ DebugWindow::~DebugWindow() mNetWidget = nullptr; } +void DebugWindow::postInit() +{ + add(mTabs); +} + void DebugWindow::slowLogic() { BLOCK_START("DebugWindow::slowLogic") |