diff options
author | Bernd Wachter <bwachter-tmw@lart.info> | 2009-03-30 00:33:58 +0200 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-30 18:40:55 -0600 |
commit | a6be972e18004d0c73e35261eef2bb28951b136f (patch) | |
tree | b780d32d98ba8106921cc91e4c9ee767a58c9dfe | |
parent | 70864719a4f5cc97b7766b11ead32f6a79549efe (diff) | |
download | mana-client-a6be972e18004d0c73e35261eef2bb28951b136f.tar.gz mana-client-a6be972e18004d0c73e35261eef2bb28951b136f.tar.bz2 mana-client-a6be972e18004d0c73e35261eef2bb28951b136f.tar.xz mana-client-a6be972e18004d0c73e35261eef2bb28951b136f.zip |
fixed a segfault on client exit if the chatwindow has tabs and the main tab is active
-rw-r--r-- | src/gui/widgets/tabbedarea.cpp | 2 |
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) { |