refs #93, re-read ATIS by pressing button from GUI

This commit is contained in:
Klaus Basan
2014-02-07 21:31:03 +01:00
parent 1a72b4b691
commit e88ee7c808
3 changed files with 14 additions and 1 deletions

View File

@@ -63,7 +63,6 @@ void MainWindow::onlineAtcStationSelected(QModelIndex index)
if (!infoMessage.isEmpty()) infoMessage.append("\n\n");
infoMessage.append(stationClicked.getMetar().getMessage());
}
this->ui->te_AtcStationsOnlineInfo->setText(infoMessage);
}
@@ -83,6 +82,16 @@ void MainWindow::getMetar(const QString &airportIcaoCode)
this->ui->te_AtcStationsOnlineInfo->setText(metar.getMessage());
}
/*
* Get METAR
*/
void MainWindow::requestAtis()
{
if (!this->isContextNetworkAvailableCheck()) return;
if (!this->m_contextNetwork->isConnected()) return;
this->m_contextNetwork->requestAtisUpdates();
}
/*
* ATC station tab changed are changed
*/