diff --git a/linphone-desktop/assets/languages/en.ts b/linphone-desktop/assets/languages/en.ts index cdb2604ae..9264b4d11 100644 --- a/linphone-desktop/assets/languages/en.ts +++ b/linphone-desktop/assets/languages/en.ts @@ -26,7 +26,7 @@ App - selftestResult + selfTestResult Linphone seems to be running correctly. @@ -38,7 +38,7 @@ Specify the linphone configuration file to use. - commandLineOptionSelftest + commandLineOptionSelfTest Run self test and exit 0 if it succeeded. diff --git a/linphone-desktop/assets/languages/fr.ts b/linphone-desktop/assets/languages/fr.ts index 29bc22cb8..6a7672d5c 100644 --- a/linphone-desktop/assets/languages/fr.ts +++ b/linphone-desktop/assets/languages/fr.ts @@ -26,7 +26,7 @@ App - selftestResult + selfTestResult Linphone semble fonctionner normalement. @@ -38,7 +38,7 @@ Spécifier un fichier de configuration à utiliser. - commandLineOptionSelftest + commandLineOptionSelfTest Éxécuter un test automatique et retourner 0 en cas de succès. diff --git a/linphone-desktop/src/app/App.cpp b/linphone-desktop/src/app/App.cpp index 82665cb86..7f412828e 100644 --- a/linphone-desktop/src/app/App.cpp +++ b/linphone-desktop/src/app/App.cpp @@ -176,12 +176,14 @@ void App::initContentApp () { qFatal("Unable to open main window."); // Load splashscreen. - activeSplashScreen(this); + bool selfTest = mParser.isSet("self-test"); + if (!selfTest) + activeSplashScreen(this); QObject::connect( CoreManager::getInstance()->getHandlers().get(), &CoreHandlers::coreStarted, - this, mParser.isSet("selftest") ? &App::quit : &App::openAppAfterInit + this, selfTest ? &App::quit : &App::openAppAfterInit ); } @@ -196,7 +198,7 @@ void App::parseArgs () { #ifndef __APPLE__ { "iconified", tr("commandLineOptionIconified") }, #endif // ifndef __APPLE__ - { "selftest", tr("commandLineOptionSelftest") }, + { "self-test", tr("commandLineOptionSelfTest") }, { { "V", "verbose" }, tr("commandLineOptionVerbose") } }); @@ -459,8 +461,8 @@ void App::openAppAfterInit () { // ----------------------------------------------------------------------------- void App::quit () { - if (mParser.isSet("selftest")) - cout << tr("selftestResult").toStdString() << endl; + if (mParser.isSet("self-test")) + cout << tr("selfTestResult").toStdString() << endl; QApplication::quit(); }