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
859 }859 }
860 ResourceCache::setRequestLimit(concurrentDownloads);860 ResourceCache::setRequestLimit(concurrentDownloads);
861 861
862 // perhaps override the avatar url. We test later for validity, so862 // perhaps override the avatar url. Since we will test later for validity
863 // no need to do so here. If someone specifies both --avatarURL863 // we don't need to do so here.
864 // and --replaceAvatarURL, the replaceAvatarURL wins.
865 QString avatarURL = getCmdOption(argc, constArgv, "--avatarURL");864 QString avatarURL = getCmdOption(argc, constArgv, "--avatarURL");
866 _avatarOverrideUrl = QUrl::fromUserInput(avatarURL);865 _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.
867 QString replaceURL = getCmdOption(argc, constArgv, "--replaceAvatarURL");870 QString replaceURL = getCmdOption(argc, constArgv, "--replaceAvatarURL");
868 if (!replaceURL.isEmpty()) {871 if (!replaceURL.isEmpty()) {
869 _avatarOverrideUrl = QUrl::fromUserInput(replaceURL);872 _avatarOverrideUrl = QUrl::fromUserInput(replaceURL);