Fix replace-avatar-url option

Fixes  [WARNING] [default] QCommandLineParser: option not defined: "replaceAvatarURL"
This commit is contained in:
Dale Glass 2022-06-21 14:56:14 +02:00
parent cf9e93b611
commit 76efc414f1

View file

@ -1453,8 +1453,8 @@ Application::Application(
// If someone specifies both --avatarURL and --replaceAvatarURL,
// the replaceAvatarURL wins. So only set the _overrideUrl if this
// does have a non-empty string.
if (parser.isSet("replaceAvatarURL")) {
QString replaceURL = parser.value("replaceAvatarURL");
if (parser.isSet("replace-avatar-url")) {
QString replaceURL = parser.value("replace-avatar-url");
_avatarOverrideUrl = QUrl::fromUserInput(replaceURL);
_saveAvatarOverrideUrl = true;
}