History

updated comments

David Kelly committed 9 years ago

Commit 5da01f01 parent 92cbb862 files · +9 −5Browse files

Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all

Unified · Split

interface/src/Application.cpp+6−3
@@ -859,11 +859,14 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 858 unmodified lines
859859 }
860860 ResourceCache::setRequestLimit(concurrentDownloads);
861861
862− // perhaps override the avatar url. We test later for validity, so
863− // no need to do so here. If someone specifies both --avatarURL
864− // and --replaceAvatarURL, the replaceAvatarURL wins.
862+ // perhaps override the avatar url. Since we will test later for validity
863+ // we don't need to do so here.
865864 QString avatarURL = getCmdOption(argc, constArgv, "--avatarURL");
866865 _avatarOverrideUrl = QUrl::fromUserInput(avatarURL);
866+
867+ // If someone specifies both --avatarURL and --replaceAvatarURL,
868+ // the replaceAvatarURL wins. So only set the _overrideUrl if this
869+ // does have a non-empty string.
867870 QString replaceURL = getCmdOption(argc, constArgv, "--replaceAvatarURL");
868871 if (!replaceURL.isEmpty()) {
869872 _avatarOverrideUrl = QUrl::fromUserInput(replaceURL);