[Konsole-devel] [Bug 119245] Input is send to session even after it's been detached

Kurt V.Hindenburg kurt.hindenburg at kdemail.net
Sat Feb 25 17:58:40 UTC 2006


------- 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=119245         
kurt.hindenburg kdemail net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From kurt.hindenburg kdemail net  2006-02-25 18:58 -------
SVN commit 513592 by hindenburg:

Correct 'Send input to all sessions' after detaching session.
Thanks for the patch flameeyes

BUG: 119245


 M  +13 -0     konsole.cpp  


--- branches/KDE/3.5/kdebase/konsole/konsole/konsole.cpp #513591:513592
 @ -3621,6 +3621,19  @
   sessions.remove(_se);
   delete ra;
 
+  if ( _se->isMasterMode() ) {
+    // Disable master mode when detaching master
+    setMasterMode(false);
+  } else {
+    QPtrListIterator<TESession> from_it(sessions);
+    for(; from_it.current(); ++from_it) {
+      TESession *from = from_it.current();
+      if(from->isMasterMode())
+        disconnect(from->widget(), SIGNAL(keyPressedSignal(QKeyEvent*)),
+	           _se->getEmulation(), SLOT(onKeyPress(QKeyEvent*)));
+    }
+  }
+
   QColor se_tabtextcolor = tabwidget->tabColor( _se->widget() );
 
   disconnect( _se,SIGNAL(done(TESession*)),



More information about the konsole-devel mailing list