mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
fix replace avatar url option according to coding standards
This commit is contained in:
parent
76efc414f1
commit
661b7c3a7d
2 changed files with 3 additions and 3 deletions
|
@ -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("replace-avatar-url")) {
|
||||
QString replaceURL = parser.value("replace-avatar-url");
|
||||
if (parser.isSet("replaceAvatarURL")) {
|
||||
QString replaceURL = parser.value("replaceAvatarURL");
|
||||
_avatarOverrideUrl = QUrl::fromUserInput(replaceURL);
|
||||
_saveAvatarOverrideUrl = true;
|
||||
}
|
||||
|
|
|
@ -161,7 +161,7 @@ int main(int argc, const char* argv[]) {
|
|||
"url"
|
||||
);
|
||||
QCommandLineOption replaceAvatarURLOption(
|
||||
"replace-avatar-url",
|
||||
"replaceAvatarURL",
|
||||
"Replaces the avatar U.R.L. When used with --avatarURL, this takes precedence.",
|
||||
"url"
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue