summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBernd Wachter <bwachter-tmw@lart.info>2009-03-30 00:33:58 +0200
committerJared Adams <jaxad0127@gmail.com>2009-03-30 18:40:55 -0600
commita6be972e18004d0c73e35261eef2bb28951b136f (patch)
treeb780d32d98ba8106921cc91e4c9ee767a58c9dfe /src
parent70864719a4f5cc97b7766b11ead32f6a79549efe (diff)
downloadmana-a6be972e18004d0c73e35261eef2bb28951b136f.tar.gz
mana-a6be972e18004d0c73e35261eef2bb28951b136f.tar.bz2
mana-a6be972e18004d0c73e35261eef2bb28951b136f.tar.xz
mana-a6be972e18004d0c73e35261eef2bb28951b136f.zip
fixed a segfault on client exit if the chatwindow has tabs and the main tab is active
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/tabbedarea.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp
index 0d7cf155..86730c51 100644
--- a/src/gui/widgets/tabbedarea.cpp
+++ b/src/gui/widgets/tabbedarea.cpp
@@ -95,7 +95,7 @@ void TabbedArea::addTab(Tab *tab, gcn::Widget *widget)
void TabbedArea::removeTab(Tab *tab)
{
- int tabIndexToBeSelected = 0;
+ int tabIndexToBeSelected = -1;
if (tab == mSelectedTab)
{