summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/desktop.cpp35
1 files changed, 17 insertions, 18 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
@@ -202,5 +202,5 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e )
i.e. one shot
-
+
*/
- if (!keyRegisterList.isEmpty()) {
+ if (!keyRegisterList.isEmpty()) {
KeyRegisterList::Iterator it;
@@ -252,3 +252,3 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e )
}
-// This was used for the iPAQ PowerButton
+// This was used for the iPAQ PowerButton
// See main.cpp for new KeyboardFilter
@@ -561,11 +561,10 @@ void Desktop::execAutoStart() {
cfg.setGroup( "AutoStart" );
- appName = cfg.readEntry("Apps", "");
- delay = (cfg.readEntry("Delay", "0" )).toInt();
+ 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) ) {
- QCopEnvelope e("QPE/System", "execute(QString)");
- e << QString(appName);
- } //else {
- //}
+ if ( suspendTime.secsTo( now ) >= ( delay * 60 ) && !appName.isEmpty() ) {
+ QCopEnvelope e( "QPE/System", "execute(QString)" );
+ e << QString( appName );
+ }
}
@@ -609,6 +608,6 @@ void Desktop::togglePower()
static bool excllock = false;
-
+
if ( excllock )
return;
-
+
excllock = true;
@@ -640,5 +639,5 @@ void Desktop::togglePower()
//qDebug("called togglePower()!!!!!!");
-
+
qApp-> processEvents ( );
-
+
excllock = false;
@@ -702,8 +701,8 @@ void DesktopApplication::shutdown( ShutdownImpl::Type t )
prepareForTermination(FALSE);
-
+
// This is a workaround for a Qt bug
// clipboard applet has to stop its poll timer, or Qt/E
- // will hang on quit() right before it emits aboutToQuit()
+ // will hang on quit() right before it emits aboutToQuit()
emit aboutToQuit ( );
-
+
quit();
@@ -800,3 +799,3 @@ bool Desktop::eventFilter( QObject *, QEvent *ev )
QWidget *active = qApp-> activeWindow ( );
-
+
if ( active && active-> isPopup ( ))