aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2015-06-06 12:24:31 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-07 08:04:37 -0700
commited20b004a88d6076a531a7c816cfaceae04002b0 (patch)
tree78f4ba65070a9cbea61c9feb9d7818a26be9ecfc
parent6b81fb49d099f62c30fe52668c3a9bc74e46506f (diff)
downloadsubsurface-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>
-rw-r--r--qt-ui/locationinformation.cpp3
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)