diff options
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/globe.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp index 56c99849c..ef8932773 100644 --- a/qt-ui/globe.cpp +++ b/qt-ui/globe.cpp @@ -52,6 +52,7 @@ void GlobeGPS::reload() loadedDives = new GeoDataDocument; + diveLocations.clear(); int idx = 0; struct dive *dive; for_each_dive(idx, dive) { @@ -60,6 +61,7 @@ void GlobeGPS::reload() if( diveLocations.contains( QString(dive->location))) continue; + diveLocations.append( QString(dive->location) ); GeoDataPlacemark *place = new GeoDataPlacemark( dive->location ); place->setCoordinate(dive->longitude.udeg / 1000000.0,dive->latitude.udeg / 1000000.0 , 0, GeoDataCoordinates::Degree ); loadedDives->append( place ); |