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 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui/widgets/tabbedarea.cpp') 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); -- cgit v1.2.3-60-g2f50