Fix stray back-button in Qt launcher
- when no location is set, don’t show the back button.
This commit is contained in:
parent
7a36b96790
commit
43add4f820
1 changed files with 5 additions and 0 deletions
|
@ -668,6 +668,11 @@ void LocationWidget::onSearchComplete()
|
||||||
void LocationWidget::onLocationChanged()
|
void LocationWidget::onLocationChanged()
|
||||||
{
|
{
|
||||||
bool locIsAirport = FGAirport::isAirportType(m_location.ptr());
|
bool locIsAirport = FGAirport::isAirportType(m_location.ptr());
|
||||||
|
if (!m_location) {
|
||||||
|
onBackToSearch();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
m_backButton->show();
|
m_backButton->show();
|
||||||
|
|
||||||
if (locIsAirport) {
|
if (locIsAirport) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue