mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 14:44:01 +00:00
Avoid to stop the application when the CLI parser cannot parse its arguments (like arguments that doesn't exist)
This commit is contained in:
parent
8575a76c80
commit
21303fc0d6
1 changed files with 2 additions and 1 deletions
|
|
@ -271,7 +271,8 @@ void App::processArguments(QHash<QString,QString> args){
|
|||
for(auto i = keys.begin() ; i != keys.end() ; ++i){
|
||||
parameters << "--"+(*i)+"="+args.value(*i);
|
||||
}
|
||||
mParser->process(parameters);
|
||||
if(!mParser->parse(parameters))
|
||||
qWarning() << "Parsing error : " << mParser->errorText();
|
||||
}
|
||||
|
||||
static QQuickWindow *createSubWindow (QQmlApplicationEngine *engine, const char *path) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue