diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-01-19 21:03:42 +1200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-19 21:03:42 +1200 |
commit | 1b3c7763581b23420c437cb28483217f788cbf37 (patch) | |
tree | 205b9f030a3b976ada4503649ae6e25c206d2326 /qt-ui/maintab.cpp | |
parent | de9acbd30d5af81d5774a92e4734e04cdb3084b1 (diff) | |
download | subsurface-1b3c7763581b23420c437cb28483217f788cbf37.tar.gz |
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>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |