author | harlekin <harlekin> | 2002-08-27 21:11:47 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-08-27 21:11:47 (UTC) |
commit | a6432554a1e64d54c53c1400aa1dfa11ae83f11a (patch) (side-by-side diff) | |
tree | baae8b562962d952904e07a5b2317041a9e37ede | |
parent | 86352e32f449ecf00de254674b7dcac72bc34a14 (diff) | |
download | opie-a6432554a1e64d54c53c1400aa1dfa11ae83f11a.zip opie-a6432554a1e64d54c53c1400aa1dfa11ae83f11a.tar.gz opie-a6432554a1e64d54c53c1400aa1dfa11ae83f11a.tar.bz2 |
small fix for autostart
-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 @@ -560,17 +560,16 @@ void Desktop::execAutoStart() { Config cfg( "autostart" ); cfg.setGroup( "AutoStart" ); appName = cfg.readEntry("Apps", ""); 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) #include <qpe/config.h> #include <sys/ioctl.h> |