-rw-r--r-- | core/launcher/desktop.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp index 552c7c3..fb10602 100644 --- a/core/launcher/desktop.cpp +++ b/core/launcher/desktop.cpp @@ -563,11 +563,10 @@ void Desktop::execAutoStart() { delay = (cfg.readEntry("Delay", "0" )).toInt(); // If the time between suspend and resume was longer then the // value saved as delay, start the app - if ( suspendTime.secsTo(now) >= (delay*60) ) { + if ( suspendTime.secsTo( now ) >= ( delay * 60 ) && !appName.isEmpty() ) { QCopEnvelope e("QPE/System", "execute(QString)"); e << QString(appName); - } //else { - //} + } } #if defined(QPE_HAVE_TOGGLELIGHT) |