mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Merge pull request #1628 from Nheko-Reborn/profile-arg
Fix profile argument parsing bug
This commit is contained in:
commit
ed6abe989f
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ main(int argc, char *argv[])
|
||||||
if (arg.startsWith(QLatin1String("--profile="))) {
|
if (arg.startsWith(QLatin1String("--profile="))) {
|
||||||
arg.remove(QStringLiteral("--profile="));
|
arg.remove(QStringLiteral("--profile="));
|
||||||
userdata = arg;
|
userdata = arg;
|
||||||
} else if (arg.startsWith(QLatin1String("--p="))) {
|
} else if (arg.startsWith(QLatin1String("-p="))) {
|
||||||
arg.remove(QStringLiteral("-p="));
|
arg.remove(QStringLiteral("-p="));
|
||||||
userdata = arg;
|
userdata = arg;
|
||||||
} else if (arg == QLatin1String("--profile") || arg == QLatin1String("-p")) {
|
} else if (arg == QLatin1String("--profile") || arg == QLatin1String("-p")) {
|
||||||
|
|
Loading…
Reference in a new issue