From 2599910741451f86323af10585c858d217a122d5 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Mon, 08 Mar 2004 16:37:42 +0000 Subject: support launching applications with user defined arguments --- (limited to 'library/applnk.cpp') diff --git a/library/applnk.cpp b/library/applnk.cpp index 9c60f1a..5f7da8e 100644 --- a/library/applnk.cpp +++ b/library/applnk.cpp @@ -667,7 +667,7 @@ AppLnk::~AppLnk() */ void AppLnk::execute() const { - execute(QStringList()); + execute( QStringList::split( ' ', property( "Arguments" ) ) ); } /*! @@ -701,7 +701,10 @@ void AppLnk::execute(const QStringList& args) const */ void AppLnk::invoke(const QStringList& args) const { - Global::execute( exec(), args[0] ); + if ( property( "Arguments" ).isEmpty() ) + Global::execute( exec(), args[0] ); + else + Global::execute( exec(), args.join( " " ) ); } /*! -- cgit v0.9.0.2