Commit ac05c808 authored by Nazar Kalinowski's avatar Nazar Kalinowski Committed by Elvis Angelaccio

Fix warning on launch from QCommandLineParser

Currently kcalc shows next warning on launch:

QCommandLineParser: already having an option named "h"
QCommandLineParser: already having an option named "help-all"
QCommandLineParser: already having an option named "v"

This patch fixes that by removing duplicate code from kcalc, "help" and "version" options are already being added in KAboutData::setupCommandLine

Differential Revision: https://phabricator.kde.org/D26460
parent 86045f9e
......@@ -2401,8 +2401,6 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char *argv[]) {
QCommandLineParser parser;
parser.addHelpOption();
parser.addVersionOption();
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment