[Konsole-devel] [Bug 81769] option to disable zmodem

Kurt V.Hindenburg kurt.hindenburg at kdemail.net
Tue Mar 29 03:08:08 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=81769         
kurt.hindenburg kdemail net changed:

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



------- Additional Comments From kurt.hindenburg kdemail net  2005-03-29 05:08 -------
CVS commit by hindenburg: 

Allow user to disable ZModem upload and download via kiosk.

[KDE Action Restrictions] 
action/zmodem_upload=false 
zmodem_download=false 

FEATURE: 81769


  M +13 -4     konsole.cpp   1.524


--- kdebase/konsole/konsole/konsole.cpp  #1.523:1.524
 @ -495,6 +495,8  @ void Konsole::makeGUI()
       m_edit->insertItem( i18n("&Send Signal"), m_signals );
 
+   if ( m_zmodemUpload ) {
    m_edit->insertSeparator();
    m_zmodemUpload->plug( m_edit );
+   }
 
    m_edit->insertSeparator();
 @ -1025,6 +1027,11  @ void Konsole::makeBasicGUI()
   m_renameSession = new KAction(i18n("&Rename Session..."), Qt::CTRL+Qt::ALT+Qt::Key_S, this,
                                 SLOT(slotRenameSession()), m_shortcuts, "rename_session");
-  m_zmodemUpload = new KAction(i18n("&ZModem Upload..."), Qt::CTRL+Qt::ALT+Qt::Key_U, this,
-                                SLOT(slotZModemUpload()), m_shortcuts, "zmodem_upload");
+
+  if (kapp->authorizeKAction("zmodem_upload"))
+    m_zmodemUpload = new KAction( i18n( "&ZModem Upload..." ), 
+                                  Qt::CTRL+Qt::ALT+Qt::Key_U, this,
+                                  SLOT( slotZModemUpload() ), 
+                                  m_shortcuts, "zmodem_upload" );
+
   monitorActivity = new KToggleAction ( i18n( "Monitor for &Activity" ), "idea", 0, this,
                                         SLOT( slotToggleMonitor() ), m_shortcuts, "monitor_activity" );
 @ -3778,4 +3785,6  @ void Konsole::slotZModemUpload()
 void Konsole::slotZModemDetected(TESession *session)
 {
+  if (!kapp->authorize("zmodem_download")) return;
+
   if(se != session)
     activateSession(session);



More information about the konsole-devel mailing list