From ac9b6f873501ddd98a78582d47ab40737a602f87 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Wed, 14 Jun 2017 11:17:21 +0200 Subject: [PATCH] feat(src/app/App): disable command line option --- linphone-desktop/src/app/App.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/linphone-desktop/src/app/App.cpp b/linphone-desktop/src/app/App.cpp index 7fe9e96ff..edc995a56 100644 --- a/linphone-desktop/src/app/App.cpp +++ b/linphone-desktop/src/app/App.cpp @@ -274,6 +274,13 @@ bool App::hasFocus () const { // ----------------------------------------------------------------------------- void App::createParser () { + // TODO: Remove me in the future. + static const char *disabledOptions[] = { + QT_TR_NOOP("commandLineOptionCmd"), + QT_TR_NOOP("commandLineOptionCmdArg") + }; + (void)disabledOptions; + if (mParser) delete mParser; @@ -288,8 +295,10 @@ void App::createParser () { { "iconified", tr("commandLineOptionIconified") }, #endif // ifndef Q_OS_MACOS { "self-test", tr("commandLineOptionSelfTest") }, - { { "V", "verbose" }, tr("commandLineOptionVerbose") }, - { { "c", "cmd" }, tr("commandLineOptionCmd"), tr("commandLineOptionCmdArg") } + { { "V", "verbose" }, tr("commandLineOptionVerbose") } + // TODO: Enable me in future version! + // , + // { { "c", "cmd" }, tr("commandLineOptionCmd"), tr("commandLineOptionCmdArg") } }); }