[Konsole-devel] [Bug 106829] konsole crashes in kiosk mode when action/settings=false is set

Kurt V.Hindenburg kurt.hindenburg at kdemail.net
Sat Jun 25 19:44:02 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=106829         




------- Additional Comments From kurt.hindenburg kdemail net  2005-06-25 21:44 -------
SVN commit 428915 by hindenburg:

Fix sm/dcop crashes when action/settings=false.

CCBUG: 106829


 M  +8 -2      konsole.cpp  


--- trunk/KDE/kdebase/konsole/konsole/konsole.cpp #428914:428915
 @ -2597,6 +2597,10  @
 {
   if (!selectSetEncoding)
      makeGUI();
+
+  if ( !selectSetEncoding )         // when action/settings=false
+    return;
+
   QStringList items = selectSetEncoding->items();
 
   QString enc;
 @ -3480,8 +3484,10  @
 
 void Konsole::setEncoding(int index)
 {
-  selectSetEncoding->setCurrentItem(index);
-  slotSetEncoding();
+  if ( selectSetEncoding ) {
+    selectSetEncoding->setCurrentItem(index);
+    slotSetEncoding();
+  }
 }
 
 void Konsole::setSchema(ColorSchema* s, TEWidget* tewidget)



More information about the konsole-devel mailing list