summaryrefslogtreecommitdiff
path: root/src/gui/windows/debugwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/debugwindow.cpp')
-rw-r--r--src/gui/windows/debugwindow.cpp6
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")