diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-17 22:56:21 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-17 22:56:21 -0300 |
commit | cffc66f45a9532076b9001825c51818df4688e3c (patch) | |
tree | 6271ee4857cc6a8473921113904eb8df84a5b164 /qt-ui/globe.cpp | |
parent | 7509360173b7434a9cbf4c8d6542b322938407d2 (diff) | |
download | subsurface-cffc66f45a9532076b9001825c51818df4688e3c.tar.gz |
Don't add a dive on the globe twice ( well, actually, different dives with same location )
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/globe.cpp')
-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 ); |