diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2015-06-06 12:24:31 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-07 08:04:37 -0700 |
commit | ed20b004a88d6076a531a7c816cfaceae04002b0 (patch) | |
tree | 78f4ba65070a9cbea61c9feb9d7818a26be9ecfc /qt-ui | |
parent | 6b81fb49d099f62c30fe52668c3a9bc74e46506f (diff) | |
download | subsurface-ed20b004a88d6076a531a7c816cfaceae04002b0.tar.gz |
Always fill the fields in LocationInformation edit widget.
If the current_dive was the same as the dive send to
the LocationInformation widget, we would do nothing,
wich is wrong because we could have filled the information
on an add_dive_site action and then cancelled it, so the
info will stay there until we change it.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/locationinformation.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp index 9f210ced2..9b99d5f91 100644 --- a/qt-ui/locationinformation.cpp +++ b/qt-ui/locationinformation.cpp @@ -34,9 +34,6 @@ void LocationInformationWidget::setCurrentDiveSiteByUuid(uint32_t uuid) if(!currentDs) return; - if (displayed_dive_site.uuid == currentDs->uuid) - return; - displayed_dive_site = *currentDs; if (displayed_dive_site.name) |