mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Repopulate the labels on the globe after an edit
Strangely, it still doesn't show the flag where it should be (but it shows just after a reselect, so it's mostly a cache issue somewhere) Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
fa6e1d5506
commit
e8720c2918
1 changed files with 2 additions and 1 deletions
|
@ -34,6 +34,8 @@ LocationInformationWidget::LocationInformationWidget(QWidget *parent) : QGroupBo
|
|||
GlobeGPS::instance(), &GlobeGPS::endGetDiveCoordinates);
|
||||
connect(GlobeGPS::instance(), &GlobeGPS::coordinatesChanged,
|
||||
this, &LocationInformationWidget::updateGpsCoordinates);
|
||||
connect(this, &LocationInformationWidget::endEditDiveSite,
|
||||
GlobeGPS::instance(), &GlobeGPS::repopulateLabels);
|
||||
}
|
||||
|
||||
void LocationInformationWidget::updateLabels()
|
||||
|
@ -89,7 +91,6 @@ void LocationInformationWidget::acceptChanges()
|
|||
free(currentDs->notes);
|
||||
currentDs->notes = copy_string(uiString);
|
||||
}
|
||||
|
||||
if (!ui.diveSiteCoordinates->text().isEmpty()) {
|
||||
double lat, lon;
|
||||
parseGpsText(ui.diveSiteCoordinates->text(), &lat, &lon);
|
||||
|
|
Loading…
Reference in a new issue