Merge pull request #8 from QuasarApp/v1_1

V1 1
This commit is contained in:
Andrei Yankovich 2019-01-16 21:20:00 +02:00 committed by GitHub
commit afbea9cfca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -51,4 +51,5 @@ DISTFILES += \
RESOURCES += \
res.qrc
VERSION = 1.1.2

View File

@ -8,6 +8,7 @@
#include "params.h"
#include <QVariantMap>
#include <QDebug>
#include <QFileInfo>
using namespace QuasarAppUtils;
@ -26,7 +27,7 @@ void Params::verboseLog(const QString &log) {
bool Params::parseParams(int argc, char *argv[]) {
params.clear();
params ["appPath"] = argv[0];
params ["appPath"] = QFileInfo(argv[0]).absolutePath();
for (int i = 1; i < argc; i++) {
if (argv[i][0] == '-' && i ) {