[Konsole-devel] [Bug 106464] konsole crashes while detaching/closing certain tabs

Kurt V.Hindenburg kurt.hindenburg at kdemail.net
Sat Sep 3 19:07:52 UTC 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=106464         




------- Additional Comments From kurt.hindenburg kdemail net  2005-09-03 21:07 -------
SVN commit 456831 by hindenburg:

Temporary fix to handle crash when closing Konsole after detaching a session.

CCBUG: 106464


 M  +12 -1     konsole.cpp  


--- branches/KDE/3.5/kdebase/konsole/konsole/konsole.cpp #456830:456831
 @ -2512,7 +2512,18  @
   if (se != s)
      se_previous = se;
   se = s;
-  session2action.find(se)->setChecked(true);
+
+// BR 106464 temporary fix... 
+//  only 2 sessions opened, 2nd session viewable, right-click on 1st tab and 
+//  select 'Detach', close original Konsole window... crash
+//  s is not set properly on original Konsole window
+  KRadioAction *ra = session2action.find(se);
+  if (!ra) {
+    se=sessions.first();        // Get new/correct TESession
+    ra = session2action.find(se);
+  }
+  ra->setChecked(true);
+
   QTimer::singleShot(1,this,SLOT(allowPrevNext())); // hack, hack, hack
 
   tabwidget->showPage( se->widget() );



More information about the konsole-devel mailing list