diff --git a/src/plugins/git/gerrit/gerritserver.cpp b/src/plugins/git/gerrit/gerritserver.cpp index 7fc9ae4c7ef..9c891f457f3 100644 --- a/src/plugins/git/gerrit/gerritserver.cpp +++ b/src/plugins/git/gerrit/gerritserver.cpp @@ -120,7 +120,7 @@ QString GerritServer::url(UrlType urlType) const case Https: protocol = "https"; break; } QString res = protocol + "://"; - if (type == Ssh || urlType != DefaultUrl) + if (type == Ssh || urlType == UrlWithHttpUser) res += hostArgument(); else res += host;