[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeplasma-addons/applets/timer
From:       Laurent Montel <montel () kde ! org>
Date:       2008-08-12 16:27:53
Message-ID: 1218558473.504705.10014.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 845932 by mlaurent:

Fix crash when command is empty
CCMAIL: davide.bettio@kdemail.net


 M  +1 -2      timer.cpp  


--- trunk/KDE/kdeplasma-addons/applets/timer/timer.cpp #845931:845932
@@ -161,11 +161,10 @@
         KPassivePopup::message(m_message, (QWidget *) 0);
     }
 
-    if (m_runCommand){
+    if (m_runCommand && !m_command.isEmpty()){
         QStringList args = KShell::splitArgs(m_command);
         QString command = args[0];
         args.removeFirst();
-
         KToolInvocation::kdeinitExec(command, args);
     }
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic