Commit 86f32f5b authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Gerrit: Ignore default port when comparing servers

The user can have the default port set in .ssh/config

Change-Id: I2b59b224c15ed32326e7daa2e33dbb9fe398a137
Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
parent b6a9aeef
......@@ -84,7 +84,9 @@ GerritServer::GerritServer(const QString &host, unsigned short port,
bool GerritServer::operator==(const GerritServer &other) const
{
return host == other.host && user == other.user && port == other.port && type == other.type;
if (port && other.port && port != other.port)
return false;
return host == other.host && user == other.user && type == other.type;
}
void GerritParameters::setPortFlagBySshType()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment