From e599d58531bc04f46fcc4957252e8848767191b9 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 24 Jun 2019 13:58:00 +0800 Subject: Desktop: update flags on the map when dive sites change Now when we change dive site location or name through a redo, the flags and associated name are always reflected correctly. Signed-off-by: Dirk Hohndel --- desktop-widgets/locationinformation.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'desktop-widgets') diff --git a/desktop-widgets/locationinformation.cpp b/desktop-widgets/locationinformation.cpp index 79710acb4..03ebbc9b4 100644 --- a/desktop-widgets/locationinformation.cpp +++ b/desktop-widgets/locationinformation.cpp @@ -133,6 +133,7 @@ void LocationInformationWidget::diveSiteChanged(struct dive_site *ds, int field) switch (field) { case LocationInformationModel::NAME: ui.diveSiteName->setText(diveSite->name); + MapWidget::instance()->repopulateLabels(); return; case LocationInformationModel::DESCRIPTION: ui.diveSiteDescription->setText(diveSite->description); @@ -153,6 +154,7 @@ void LocationInformationWidget::diveSiteChanged(struct dive_site *ds, int field) enableLocationButtons(false); ui.diveSiteCoordinates->clear(); } + MapWidget::instance()->repopulateLabels(); default: return; } -- cgit v1.2.3-70-g09d2