respect servers online flag.
This commit is contained in:
parent
e64a2db5a0
commit
ee1a042847
1 changed files with 5 additions and 0 deletions
|
@ -1559,6 +1559,11 @@ void QtLauncher::onRefreshMPServersDone(simgear::HTTP::Request*)
|
|||
continue;
|
||||
}
|
||||
|
||||
if (c->getBoolValue("online") != true) {
|
||||
// only list online servers
|
||||
continue;
|
||||
}
|
||||
|
||||
QString name = QString::fromStdString(c->getStringValue("name"));
|
||||
QString loc = QString::fromStdString(c->getStringValue("location"));
|
||||
QString host = QString::fromStdString(c->getStringValue("hostname"));
|
||||
|
|
Loading…
Add table
Reference in a new issue