From 3d1794707410f8d118f4e3b8f2a6f9f80800e00a Mon Sep 17 00:00:00 2001 From: blacksun Date: Mon, 21 Jan 2019 17:23:00 +0000 Subject: [PATCH] Use QETArguments, instead of arguments list itself git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5715 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sources/main.cpp b/sources/main.cpp index 6e1099fa7..814b49032 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -44,10 +44,11 @@ int main(int argc, char **argv) if (app.isSecondary()) { - QStringList strl = app.arguments(); + QStringList arg_list = app.arguments(); //Remove the first argument, it's the binary file - strl.takeFirst(); - QString message = "launched-with-args: " + QET::joinWithSpaces(strl); + arg_list.takeFirst(); + QETArguments qetarg(arg_list); + QString message = "launched-with-args: " + QET::joinWithSpaces(QStringList(qetarg.arguments())); app.sendMessage(message.toUtf8()); return 0; }