mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
ae6ce93775
commit
e599d58531
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue