From 15c19f19e86f94bc28cd0f2b80f0c5be394479fa Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 19 Oct 2013 12:25:50 +0300 Subject: move virtual member calls from tabbedarea constuctor into postInit. --- src/gui/widgets/tabbedarea.cpp | 4 ++++ src/gui/widgets/tabbedarea.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp index 721e0b653..5044d2758 100644 --- a/src/gui/widgets/tabbedarea.cpp +++ b/src/gui/widgets/tabbedarea.cpp @@ -68,7 +68,10 @@ TabbedArea::TabbedArea(const Widget2 *const widget) : mArrowButton[0] = new Button(this, "<", "shift_left", this); mArrowButton[1] = new Button(this, ">", "shift_right", this); +} +void TabbedArea::postInit() +{ widgetResized(gcn::Event(nullptr)); } @@ -77,6 +80,7 @@ TabbedArea::~TabbedArea() if (gui) gui->removeDragged(this); + // +++ virtual method calls remove(mTabContainer); remove(mWidgetContainer); diff --git a/src/gui/widgets/tabbedarea.h b/src/gui/widgets/tabbedarea.h index 6b20d59f4..115d41095 100644 --- a/src/gui/widgets/tabbedarea.h +++ b/src/gui/widgets/tabbedarea.h @@ -55,6 +55,8 @@ class TabbedArea final : public Widget2, ~TabbedArea(); + void postInit(); + /** * Draw the tabbed area. */ -- cgit v1.2.3-70-g09d2