mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +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())
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user