[qet] qet/qet: [5715] Use QETArguments, instead of arguments list itself

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 5715
Author:   blacksun
Date:     2019-01-21 18:23:00 +0100 (Mon, 21 Jan 2019)
Log Message:
-----------
Use QETArguments, instead of arguments list itself

Modified Paths:
--------------
    trunk/sources/main.cpp

Modified: trunk/sources/main.cpp
===================================================================
--- trunk/sources/main.cpp	2019-01-21 13:24:58 UTC (rev 5714)
+++ trunk/sources/main.cpp	2019-01-21 17:23:00 UTC (rev 5715)
@@ -44,10 +44,11 @@
 	
 	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;
 	}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/