[Konsole-devel] [Bug 77018] konsole session does not honor keytab in .kde

Kurt V.Hindenburg khindenburg at cherrynebula.net
Sat Jun 5 22:49:49 UTC 2004


------- 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=77018      
khindenburg cherrynebula net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      everconfirmed|0                           |1



------- Additional Comments From khindenburg cherrynebula net  2004-06-06 00:49 -------
This patches fixes this...

Index: keytrans.cpp
===================================================================
RCS file: /home/kde/kdebase/konsole/konsole/keytrans.cpp,v
retrieving revision 1.46
diff -u -p -r1.46 keytrans.cpp
--- keytrans.cpp        26 Jul 2003 10:41:25 -0000      1.46
+++ keytrans.cpp        5 Jun 2004 22:48:05 -0000
 @ -649,9 +649,14  @ KeyTrans* KeyTrans::find(int numb)
 KeyTrans* KeyTrans::find(const QString &id)
 {
   QIntDictIterator<KeyTrans> it(*numb2keymap);
+
+  QString key = id;
+  if (key.endsWith(".keytab"))
+    key.remove(".keytab");
+
   while(it.current())
   {
-    if (it.current()->id() == id)
+    if (it.current()->id() == key)
        return it.current();
     ++it;
   }



More information about the konsole-devel mailing list