Skip to content

Commit 5fbbd89

Browse files
committed
Revert "Merge pull request #1455 from Factoid/command-line-parser"
This reverts commit 738149c, reversing changes made to 9e779cf.
1 parent 33d6081 commit 5fbbd89

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

app/gui/qt/main.cpp

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,16 @@
2121

2222
#include "mainwindow.h"
2323
#include "sonicpilog.h"
24-
#include <iostream>
25-
2624
int main(int argc, char *argv[])
2725
{
2826
#ifndef Q_OS_MAC
2927
Q_INIT_RESOURCE(SonicPi);
3028
#endif
3129

3230
QApplication app(argc, argv);
33-
34-
QCommandLineParser parser;
35-
parser.setApplicationDescription("Sonic-Pi");
36-
parser.addHelpOption();
37-
parser.addVersionOption();
38-
QCommandLineOption lang_opt = {{"l","lang"},QObject::tr("Override language to <locale>"),"locale"};
39-
parser.addOption(lang_opt);
40-
parser.process(app);
41-
4231
qRegisterMetaType<SonicPiLog::MultiMessage>("SonicPiLog::MultiMessage");
43-
32+
4433
QString systemLocale = QLocale::system().name();
45-
if( parser.isSet(lang_opt) ) systemLocale = parser.value(lang_opt);
4634

4735
QTranslator qtTranslator;
4836
qtTranslator.load("qt_" + systemLocale, QLibraryInfo::location(QLibraryInfo::TranslationsPath));

0 commit comments

Comments
 (0)