1
0
Fork 0

Fix stray back-button in Qt launcher

- when no location is set, don’t show the back button.
This commit is contained in:
James Turner 2016-04-14 18:54:27 +01:00
parent 7a36b96790
commit 43add4f820

View file

@ -668,6 +668,11 @@ void LocationWidget::onSearchComplete()
void LocationWidget::onLocationChanged()
{
bool locIsAirport = FGAirport::isAirportType(m_location.ptr());
if (!m_location) {
onBackToSearch();
return;
}
m_backButton->show();
if (locIsAirport) {