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 <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-01-19 21:03:42 +12:00
parent de9acbd30d
commit 1b3c776358

View file

@ -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) {