mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
refs #471, allow to search server by name and occupy less height for form
This commit is contained in:
committed by
Mathew Sutcliffe
parent
ace3b60062
commit
012543ef02
@@ -20,5 +20,14 @@ namespace BlackMisc
|
||||
CSequence<CServer>(other)
|
||||
{ }
|
||||
|
||||
bool CServerList::containsName(const QString &name) const
|
||||
{
|
||||
for (const CServer &s : *this)
|
||||
{
|
||||
if (s.matchesName(name)) { return true; }
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user