Merge pull request #1628 from Nheko-Reborn/profile-arg

Fix profile argument parsing bug
pull/1635/head
DeepBlueV7.X 12 months ago committed by GitHub
commit ed6abe989f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/main.cpp

@ -185,7 +185,7 @@ main(int argc, char *argv[])
if (arg.startsWith(QLatin1String("--profile="))) {
arg.remove(QStringLiteral("--profile="));
userdata = arg;
} else if (arg.startsWith(QLatin1String("--p="))) {
} else if (arg.startsWith(QLatin1String("-p="))) {
arg.remove(QStringLiteral("-p="));
userdata = arg;
} else if (arg == QLatin1String("--profile") || arg == QLatin1String("-p")) {

Loading…
Cancel
Save