Compare commits

...
Sign in to create a new pull request.

1 commit
master ... sfos

Author SHA1 Message Date
Renaud Casenave-Péré
a487bb45b6 Pass argc/argv to Qt before passing it to ecl
QApplication will remove arguments it recognizes but ecl will not detect this
and might reference a no more existent argument
2021-03-23 22:15:43 +01:00

View file

@ -55,10 +55,11 @@ int catch_all_qexec() {
int main(int argc, char** argv) {
EQL::ini(argc, argv); // best initialized here
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts); // for Qt WebEngine
QApplication qapp(argc, argv);
EQL::ini(argc, argv); // best initialized here
QStringList args(QCoreApplication::arguments());
if(args.contains("-h") || (args.contains("--help"))) {
std::cout << "Usage: eql5 [file] [-qtpl] [-qgui] [-quic file.ui [:ui-package] [:maximized]] [-slime] [-norc] [-debug-on-error]" << std::endl;