diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-06 14:02:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-06 14:12:59 +0300 |
commit | 73e7be1617217396c5f1eead52af87bc7fef2357 (patch) | |
tree | b985dfd5f1173a6c7e1c741c796a4a61de0cefa8 /src/gui/widgets/tabbedarea.cpp | |
parent | 5ffbb0ca66337bd13a21a1875cc5bec5cc9a724d (diff) | |
download | mv-73e7be1617217396c5f1eead52af87bc7fef2357.tar.gz mv-73e7be1617217396c5f1eead52af87bc7fef2357.tar.bz2 mv-73e7be1617217396c5f1eead52af87bc7fef2357.tar.xz mv-73e7be1617217396c5f1eead52af87bc7fef2357.zip |
add colors tab into chat emotes window.
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-rw-r--r-- | src/gui/widgets/tabbedarea.cpp | 9 |
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; + } } } |