diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-01-19 17:32:17 +1200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-19 17:38:17 +1200 |
commit | df46b85ee1cc7a33fe35e69c19345a59c966fa41 (patch) | |
tree | 88951ed5fdb90ca23db73afe181a0279e79fbf2a /qt-ui/maintab.cpp | |
parent | 83018619d6f22efda3a98742598670d7bd76482b (diff) | |
download | subsurface-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.cpp | 3 |
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); } |