mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Ref T85, minor improvements on server type
* UI: generic generation of combobox * UI: Read only for combobox * CServer utility functions
This commit is contained in:
@@ -9,8 +9,6 @@
|
||||
|
||||
#include "blackmisc/network/serverlist.h"
|
||||
#include "blackmisc/metaclassprivate.h"
|
||||
#include "blackmisc/network/server.h"
|
||||
|
||||
#include <tuple>
|
||||
|
||||
namespace BlackMisc
|
||||
@@ -72,6 +70,16 @@ namespace BlackMisc
|
||||
}
|
||||
}
|
||||
|
||||
CServerList CServerList::findFsdServers() const
|
||||
{
|
||||
CServerList fsdServers;
|
||||
for (const CServer &s : *this)
|
||||
{
|
||||
if (s.isFsdServer()) { fsdServers.push_back(s); }
|
||||
}
|
||||
return fsdServers;
|
||||
}
|
||||
|
||||
void CServerList::setFsdSetup(const CFsdSetup &setup)
|
||||
{
|
||||
for (CServer &s : *this)
|
||||
|
||||
Reference in New Issue
Block a user