summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabbedarea.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-06 14:02:19 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-06 14:12:59 +0300
commit73e7be1617217396c5f1eead52af87bc7fef2357 (patch)
treeb985dfd5f1173a6c7e1c741c796a4a61de0cefa8 /src/gui/widgets/tabbedarea.cpp
parent5ffbb0ca66337bd13a21a1875cc5bec5cc9a724d (diff)
downloadmanaverse-73e7be1617217396c5f1eead52af87bc7fef2357.tar.gz
manaverse-73e7be1617217396c5f1eead52af87bc7fef2357.tar.bz2
manaverse-73e7be1617217396c5f1eead52af87bc7fef2357.tar.xz
manaverse-73e7be1617217396c5f1eead52af87bc7fef2357.zip
add colors tab into chat emotes window.
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-rw-r--r--src/gui/widgets/tabbedarea.cpp9
1 files changed, 6 insertions, 3 deletions
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;
+ }
}
}