mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-21 13:48:08 +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
b4b0e05c97
commit
2d7aec88e2
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