-rw-r--r-- | library/global.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/library/global.cpp b/library/global.cpp index 68a3a75..ce39751 100644 --- a/library/global.cpp +++ b/library/global.cpp @@ -112,3 +112,3 @@ StartingAppList::StartingAppList( QObject *parent, const char* name ) this, SLOT( handleNewChannel(const QString&)) ); -#endif +#endif dict.setAutoDelete( TRUE ); @@ -390,3 +390,3 @@ void Global::statusMessage(const QString& message) { -#if!defined(QT_NO_COP) +#if !defined(QT_NO_COP) QCopEnvelope e( "QPE/TaskBar", "message(QString)" ); @@ -563,3 +563,3 @@ void Global::invoke(const QString &c) { QCopEnvelope env( ("QPE/Application/" + ap).latin1(), "raise()" ); } - + QCopEnvelope e("QPE/System", "notBusy(QString)" ); @@ -606,4 +606,4 @@ void Global::invoke(const QString &c) #endif - { - bool success = false; + { + bool success = false; int pfd [2]; @@ -611,5 +611,5 @@ void Global::invoke(const QString &c) pfd [0] = pfd [1] = -1; - + pid_t pid = ::fork ( ); - + if ( pid == 0 ) { // child @@ -624,3 +624,3 @@ void Global::invoke(const QString &c) ::fcntl ( pfd [1], F_SETFD, FD_CLOEXEC ); - + // Try bindir first, so that foo/bar works too @@ -628,3 +628,3 @@ void Global::invoke(const QString &c) ::execvp ( args [0], (char * const *) args ); - + char resultByte = 1; @@ -632,3 +632,3 @@ void Global::invoke(const QString &c) ::write ( pfd [1], &resultByte, 1 ); - ::_exit ( -1 ); + ::_exit ( -1 ); } @@ -636,4 +636,4 @@ void Global::invoke(const QString &c) success = true; - - if ( pfd [1] >= 0 ) + + if ( pfd [1] >= 0 ) ::close ( pfd [1] ); @@ -649,3 +649,3 @@ void Global::invoke(const QString &c) continue; - + break; // success @@ -655,3 +655,3 @@ void Global::invoke(const QString &c) } - if ( success ) + if ( success ) StartingAppList::add( list[0] ); |