From e8720c2918f11f3171e73c5838aaf8098bc8e006 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 30 Jul 2015 22:47:17 -0300 Subject: Repopulate the labels on the globe after an edit Strangely, it still doesn't show the flag where it should be (but it shows just after a reselect, so it's mostly a cache issue somewhere) Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/locationinformation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp index a0c52e14a..1847afde2 100644 --- a/qt-ui/locationinformation.cpp +++ b/qt-ui/locationinformation.cpp @@ -34,6 +34,8 @@ LocationInformationWidget::LocationInformationWidget(QWidget *parent) : QGroupBo GlobeGPS::instance(), &GlobeGPS::endGetDiveCoordinates); connect(GlobeGPS::instance(), &GlobeGPS::coordinatesChanged, this, &LocationInformationWidget::updateGpsCoordinates); + connect(this, &LocationInformationWidget::endEditDiveSite, + GlobeGPS::instance(), &GlobeGPS::repopulateLabels); } void LocationInformationWidget::updateLabels() @@ -89,7 +91,6 @@ void LocationInformationWidget::acceptChanges() free(currentDs->notes); currentDs->notes = copy_string(uiString); } - if (!ui.diveSiteCoordinates->text().isEmpty()) { double lat, lon; parseGpsText(ui.diveSiteCoordinates->text(), &lat, &lon); -- cgit v1.2.3-70-g09d2