summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/locationinformation.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-06-24 13:02:05 +0800
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2019-06-24 13:01:25 +0200
commitae6ce9377545f75a1e1b157cb19e32ba50afb0d7 (patch)
treedc13bb443594bbcd577a5293ab024d4d19728d51 /desktop-widgets/locationinformation.cpp
parentca496c63aed2ff8c372baefee6a8b7a48402d081 (diff)
downloadsubsurface-ae6ce9377545f75a1e1b157cb19e32ba50afb0d7.tar.gz
Cleanup: simple consistency
Same pattern as the other functions in this group. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/locationinformation.cpp')
-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()