mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Ref T219, server list selector signal (changed server)
This commit is contained in:
@@ -33,6 +33,7 @@ namespace BlackGui
|
||||
{
|
||||
m_pendingPreselect = server.getName();
|
||||
}
|
||||
connect(this, &QComboBox::currentTextChanged, this, &CServerListSelector::onServerTextChanged);
|
||||
}
|
||||
|
||||
void CServerListSelector::setServers(const CServerList &servers, bool nameIsCountry)
|
||||
@@ -120,6 +121,12 @@ namespace BlackGui
|
||||
}
|
||||
}
|
||||
|
||||
void CServerListSelector::onServerTextChanged(const QString &text)
|
||||
{
|
||||
Q_UNUSED(text);
|
||||
emit this->serverChanged(this->currentServer());
|
||||
}
|
||||
|
||||
bool CServerListSelector::knowsAllCountries()
|
||||
{
|
||||
return (sGui && sGui->getWebDataServices() && sGui->getWebDataServices()->getCountriesCount() > 0);
|
||||
|
||||
Reference in New Issue
Block a user