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>
This commit is contained in:
Tomaz Canabrava 2015-06-06 12:24:31 -03:00 committed by Dirk Hohndel
parent 6b81fb49d0
commit ed20b004a8

View file

@ -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)