From 1b3c7763581b23420c437cb28483217f788cbf37 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 19 Jan 2015 21:03:42 +1200 Subject: [PATCH] While editing the coordinates we need to compare to the displayed_dive Comparing to the master dive only made sense when we immediately modified a dive. Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index be55f6f29..23be491b9 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -1178,7 +1178,7 @@ void MainTab::on_coordinates_textChanged(const QString &text) bool parsed = false; QPalette p; ui.coordinates->setPalette(p); // reset palette - gpsChanged = gpsHasChanged(&displayed_dive, current_dive, text, &parsed); + gpsChanged = gpsHasChanged(&displayed_dive, &displayed_dive, text, &parsed); if (gpsChanged) markChangedWidget(ui.coordinates); // marks things yellow if (!parsed) {