From ae6ce9377545f75a1e1b157cb19e32ba50afb0d7 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 24 Jun 2019 13:02:05 +0800 Subject: Cleanup: simple consistency Same pattern as the other functions in this group. Signed-off-by: Dirk Hohndel --- desktop-widgets/locationinformation.cpp | 5 ++--- 1 file 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() -- cgit v1.2.3-70-g09d2