Guard against a crash Torsten encountered once.
This commit is contained in:
parent
cc6178a9f3
commit
1898a5fef8
1 changed files with 1 additions and 1 deletions
|
@ -930,7 +930,7 @@ void QtLauncher::onRun()
|
|||
|
||||
if (m_ui->runwayRadio->isChecked()) {
|
||||
int index = m_ui->runwayCombo->currentData().toInt();
|
||||
if (index >= 0) {
|
||||
if ((index >= 0) && m_selectedAirport) {
|
||||
// explicit runway choice
|
||||
opt->addOption("runway", m_selectedAirport->getRunwayByIndex(index)->ident());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue