Fix profile argument parsing bug

pull/1628/head
Loren Burkholder 1 year ago
parent 242f61c8a3
commit 5bd53e9479
No known key found for this signature in database
GPG Key ID: AB62CB312CEC2BBC
  1. 2
      src/main.cpp

@ -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…
Cancel
Save