From bad368ebceecc3dd976e8eb206c773b5df6d11ef Mon Sep 17 00:00:00 2001 From: mickeyl Date: Mon, 08 Mar 2004 16:43:36 +0000 Subject: support launching applications with user defined arguments --- diff --git a/core/launcher/applauncher.cpp b/core/launcher/applauncher.cpp index 08a3cb4..efbf426 100644 --- a/core/launcher/applauncher.cpp +++ b/core/launcher/applauncher.cpp @@ -483,8 +483,9 @@ bool AppLauncher::execute(const QString &c, const QString &docParam, bool noRais qWarning("AppLauncher::execute '%s' '%s'", (const char*) c, (const char*) docParam ); // Convert the command line in to a list of arguments QStringList list = QStringList::split(QRegExp(" *"),c); - if ( !docParam.isEmpty() ) - list.append( docParam ); + QStringList arglist = QStringList::split(QRegExp(" *"),docParam); + for ( QStringList::Iterator it = arglist.begin(); it != arglist.end(); ++it ) + list.append( *it ); QString appName = list[0]; if ( isRunning(appName) ) { -- cgit v0.9.0.2