diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-06-24 13:58:00 +0800 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2019-06-24 13:01:25 +0200 |
commit | e599d58531bc04f46fcc4957252e8848767191b9 (patch) | |
tree | eff050e1381b433e439134d3fb1a75f8fdfd9b8e | |
parent | ae6ce9377545f75a1e1b157cb19e32ba50afb0d7 (diff) | |
download | subsurface-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.cpp | 2 |
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; } |