author | sandman <sandman> | 2002-10-02 21:53:00 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-10-02 21:53:00 (UTC) |
commit | 4c8b8e96d841bb12637b5b022dbfeca6dae3d189 (patch) (side-by-side diff) | |
tree | ce8eb50e5cb9bfd6a5ed3c43e7f22cde25956e84 | |
parent | 2d0c6327dd40ab6847ce055c40ca59893bc8b9b2 (diff) | |
download | opie-4c8b8e96d841bb12637b5b022dbfeca6dae3d189.zip opie-4c8b8e96d841bb12637b5b022dbfeca6dae3d189.tar.gz opie-4c8b8e96d841bb12637b5b022dbfeca6dae3d189.tar.bz2 |
Hack for suspend action is no longer needed
-rw-r--r-- | library/global.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/library/global.cpp b/library/global.cpp index 2e4d03f..9b908bf 100644 --- a/library/global.cpp +++ b/library/global.cpp @@ -651,68 +651,64 @@ void Global::execute( const QString &c, const QString& document ) // Attempt to execute the app using a builtin class for the app first // else try and find it in the bin directory if (builtin) { for (int i = 0; builtin[i].file; i++) { if ( builtin[i].file == c ) { if ( running[i] ) { if ( !document.isNull() && builtin[i].documentary ) setDocument(running[i], document); running[i]->raise(); running[i]->show(); running[i]->setActiveWindow(); } else { running[i] = builtin[i].func( builtin[i].maximized ); } #ifndef QT_NO_COP QCopEnvelope e("QPE/System", "notBusy(QString)" ); e << c; // that was quick ;-) #endif return; } } } //Global::invoke(c, document); // Convert the command line in to a list of arguments QStringList list = QStringList::split(QRegExp(" *"),c); #if defined(Q_WS_QWS) && !defined(QT_NO_COP) QString ap=list[0]; qDebug("executing %s", ap.latin1() ); - if ( ap == "suspend" ) { - QWSServer::sendKeyEvent( 0xffff, Qt::Key_F34, FALSE, TRUE, FALSE ); - return; - } /* if need be, sending a qcop message will result in an invoke, see preceeding function */ invoke( ap ); //{ QCopEnvelope env( ("QPE/Application/" + ap).latin1(), "raise()" ); } if ( !document.isEmpty() ) { QCopEnvelope env( ("QPE/Application/" + ap).latin1(), "setDocument(QString)" ); env << document; } #endif } /*! Returns the string \a s with the characters '\', '"', and '$' quoted by a preceeding '\'. \sa stringQuote() */ QString Global::shellQuote(const QString& s) { QString r="\""; for (int i=0; i<(int)s.length(); i++) { char c = s[i].latin1(); switch (c) { case '\\': case '"': case '$': r+="\\"; } r += s[i]; } r += "\""; return r; } |