diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-02-04 10:15:39 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-02-06 08:50:22 -0800 |
commit | 96a03b4b26e85616b6cc851be1917c7e0f63b9c1 (patch) | |
tree | 4a73922d064c31860f1b69ecd5fc9e978ad4ed9f /desktop-widgets | |
parent | cabaaa69db311f83a2bd0ac78294cb42a1dc91e4 (diff) | |
download | subsurface-96a03b4b26e85616b6cc851be1917c7e0f63b9c1.tar.gz |
Dive site: don't save invalid GPS coordinates
On the dive site screen, when entering invalid GPS coordinates,
we cleared the location of the dive site. Don't do this. To
clear the location, the user now has to enter the empty string.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/locationinformation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/locationinformation.cpp b/desktop-widgets/locationinformation.cpp index c9d11b5ee..06b89e9d1 100644 --- a/desktop-widgets/locationinformation.cpp +++ b/desktop-widgets/locationinformation.cpp @@ -267,7 +267,7 @@ void LocationInformationWidget::on_GPSbutton_clicked() void LocationInformationWidget::on_diveSiteCoordinates_editingFinished() { - if (diveSite) + if (diveSite && validateGpsText(ui.diveSiteCoordinates->text())) Command::editDiveSiteLocation(diveSite, parseGpsText(ui.diveSiteCoordinates->text())); } |