mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
83018619d6
commit
df46b85ee1
4 changed files with 14 additions and 13 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue