mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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) {
|
switch (field) {
|
||||||
case LocationInformationModel::NAME:
|
case LocationInformationModel::NAME:
|
||||||
ui.diveSiteName->setText(diveSite->name);
|
ui.diveSiteName->setText(diveSite->name);
|
||||||
|
MapWidget::instance()->repopulateLabels();
|
||||||
return;
|
return;
|
||||||
case LocationInformationModel::DESCRIPTION:
|
case LocationInformationModel::DESCRIPTION:
|
||||||
ui.diveSiteDescription->setText(diveSite->description);
|
ui.diveSiteDescription->setText(diveSite->description);
|
||||||
|
@ -153,6 +154,7 @@ void LocationInformationWidget::diveSiteChanged(struct dive_site *ds, int field)
|
||||||
enableLocationButtons(false);
|
enableLocationButtons(false);
|
||||||
ui.diveSiteCoordinates->clear();
|
ui.diveSiteCoordinates->clear();
|
||||||
}
|
}
|
||||||
|
MapWidget::instance()->repopulateLabels();
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue