From 73e7be1617217396c5f1eead52af87bc7fef2357 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 6 Aug 2013 14:02:19 +0300 Subject: add colors tab into chat emotes window. --- src/gui/widgets/tabbedarea.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/tabbedarea.cpp') diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp index 5e3af38d4..25fc3b8f2 100644 --- a/src/gui/widgets/tabbedarea.cpp +++ b/src/gui/widgets/tabbedarea.cpp @@ -610,7 +610,7 @@ gcn::Widget *TabbedArea::getWidgetByIndex(const int index) const return mTabs[index].second; } -void TabbedArea::removeAll() +void TabbedArea::removeAll(bool del) { if (getSelectedTabIndex() != -1) { @@ -622,8 +622,11 @@ void TabbedArea::removeAll() Tab *tab = mTabs[idx].first; gcn::Widget *widget = mTabs[idx].second; removeTab(tab); - delete tab; - delete widget; + if (del) + { + delete tab; + delete widget; + } } } -- cgit v1.2.3-60-g2f50