refs #471, allow to search server by name and occupy less height for form

This commit is contained in:
Klaus Basan
2015-11-02 19:29:42 +01:00
committed by Mathew Sutcliffe
parent ace3b60062
commit 012543ef02
10 changed files with 157 additions and 108 deletions

View File

@@ -29,6 +29,12 @@ namespace BlackMisc
return s;
}
bool CServer::matchesName(const QString &name) const
{
return m_name.length() == name.length() &&
m_name.startsWith(name, Qt::CaseInsensitive);
}
bool CServer::isValidForLogin() const
{
return this->m_user.hasValidCredentials() && this->m_port > 0 && !this->m_address.isEmpty() && this->isAcceptingConnections();