From: James Turner Date: Sun, 21 Aug 2016 15:36:54 +0000 (-0500) Subject: Fix re-selection of start location. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=136aeda0ed67813aac13f51f9e64c139386189e0;p=flightgear.git Fix re-selection of start location. --- diff --git a/src/GUI/LocationWidget.cxx b/src/GUI/LocationWidget.cxx index 4c3048cd4..a1282ed39 100644 --- a/src/GUI/LocationWidget.cxx +++ b/src/GUI/LocationWidget.cxx @@ -995,8 +995,12 @@ void LocationWidget::onShowHistory() void LocationWidget::setBaseLocation(FGPositionedRef ref) { m_locationIsLatLon = false; - if (m_location == ref) +// don't change location if we're on the same location. We must check +// the current stack index, otherwise there's no way back into the same +// location after using the back button. + if ((m_location == ref) && (m_ui->stack->currentIndex() != 2)) { return; + } m_location = ref; onLocationChanged();