From a6be972e18004d0c73e35261eef2bb28951b136f Mon Sep 17 00:00:00 2001 From: Bernd Wachter Date: Mon, 30 Mar 2009 00:33:58 +0200 Subject: fixed a segfault on client exit if the chatwindow has tabs and the main tab is active --- src/gui/widgets/tabbedarea.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3-70-g09d2