From 3c4542fba66ca10dbde92c66d2d74e019eb7f8d2 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 21 Aug 2016 10:36:54 -0500 Subject: [PATCH] Fix re-selection of start location. --- src/GUI/LocationWidget.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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();