summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Toscano <[email protected]>2017-08-27 17:15:01 +0200
committerLuigi Toscano <[email protected]>2017-08-27 17:15:01 +0200
commited5ede8722784c777120b5f784105ab6e87fa07e (patch)
tree1759ea66fa17a214a70398b8adb5cfaf48e2d90e
parenta153976352403c114fd77eb46bca067bac43ed76 (diff)
Fix initialization (command line, obsolete call)
- fix the name of the course-info action (remove trailing space); - remove the obsolete (and noop) call to QApplication::setColorSpec().
-rw-r--r--main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/main.cpp b/main.cpp
index fd7a326..11fdf2c 100644
--- a/main.cpp
+++ b/main.cpp
@@ -67,7 +67,7 @@ int main(int argc, char **argv)
parser.addVersionOption();
parser.addHelpOption();
parser.addOption(QCommandLineOption(QStringList() << QLatin1String("+file"), i18n("File")));
- parser.addOption(QCommandLineOption(QStringList() << QLatin1String("course-info "), i18n("Print course information and exit")));
+ parser.addOption(QCommandLineOption(QStringList() << QLatin1String("course-info"), i18n("Print course information and exit")));
aboutData.setupCommandLine(&parser);
parser.process(app);
@@ -97,8 +97,6 @@ int main(int argc, char **argv)
}
}
- QApplication::setColorSpec(QApplication::ManyColor);
-
KolfWindow *top = new KolfWindow;
if (parser.positionalArguments().count() >= 1)