From ed20b004a88d6076a531a7c816cfaceae04002b0 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sat, 6 Jun 2015 12:24:31 -0300 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/locationinformation.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'qt-ui') 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) -- cgit v1.2.3-70-g09d2