aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-19 17:32:17 +1200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-19 17:38:17 +1200
commitdf46b85ee1cc7a33fe35e69c19345a59c966fa41 (patch)
tree88951ed5fdb90ca23db73afe181a0279e79fbf2a /qt-ui/maintab.cpp
parent83018619d6f22efda3a98742598670d7bd76482b (diff)
downloadsubsurface-df46b85ee1cc7a33fe35e69c19345a59c966fa41.tar.gz
Don't just change the location when double clicking on the globe
Instead be consistent with other parts of the code and put us in editing mode so the user can accept / reject the change. See #800 Fixes #801 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 445ab2b5a..be55f6f29 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -1246,6 +1246,9 @@ void MainTab::updateCoordinatesText(qreal lat, qreal lon)
void MainTab::updateGpsCoordinates()
{
+ if (editMode == NONE)
+ enableEdition();
+
ui.coordinates->setText(printGPSCoords(displayed_dive.latitude.udeg, displayed_dive.longitude.udeg));
ui.coordinates->setModified(displayed_dive.latitude.udeg || displayed_dive.longitude.udeg);
}