mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
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
This commit is contained in:
@@ -44,10 +44,11 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
if (app.isSecondary())
|
if (app.isSecondary())
|
||||||
{
|
{
|
||||||
QStringList strl = app.arguments();
|
QStringList arg_list = app.arguments();
|
||||||
//Remove the first argument, it's the binary file
|
//Remove the first argument, it's the binary file
|
||||||
strl.takeFirst();
|
arg_list.takeFirst();
|
||||||
QString message = "launched-with-args: " + QET::joinWithSpaces(strl);
|
QETArguments qetarg(arg_list);
|
||||||
|
QString message = "launched-with-args: " + QET::joinWithSpaces(QStringList(qetarg.arguments()));
|
||||||
app.sendMessage(message.toUtf8());
|
app.sendMessage(message.toUtf8());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user