summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-06-24 13:58:00 +0800
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2019-06-24 13:01:25 +0200
commite599d58531bc04f46fcc4957252e8848767191b9 (patch)
treeeff050e1381b433e439134d3fb1a75f8fdfd9b8e
parentae6ce9377545f75a1e1b157cb19e32ba50afb0d7 (diff)
downloadsubsurface-e599d58531bc04f46fcc4957252e8848767191b9.tar.gz
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 <dirk@hohndel.org>
-rw-r--r--desktop-widgets/locationinformation.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}