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