summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--desktop-widgets/locationinformation.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/desktop-widgets/locationinformation.cpp b/desktop-widgets/locationinformation.cpp
index 6287bc87b..79710acb4 100644
--- a/desktop-widgets/locationinformation.cpp
+++ b/desktop-widgets/locationinformation.cpp
@@ -203,9 +203,8 @@ void LocationInformationWidget::initFields(dive_site *ds)
void LocationInformationWidget::on_diveSiteCoordinates_editingFinished()
{
- if (!diveSite)
- return;
- Command::editDiveSiteLocation(diveSite, parseGpsText(ui.diveSiteCoordinates->text()));
+ if (diveSite)
+ Command::editDiveSiteLocation(diveSite, parseGpsText(ui.diveSiteCoordinates->text()));
}
void LocationInformationWidget::on_diveSiteCountry_editingFinished()