aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-core/gpslocation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'subsurface-core/gpslocation.cpp')
-rw-r--r--subsurface-core/gpslocation.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/subsurface-core/gpslocation.cpp b/subsurface-core/gpslocation.cpp
index 361a1b23c..e5f38dc1d 100644
--- a/subsurface-core/gpslocation.cpp
+++ b/subsurface-core/gpslocation.cpp
@@ -208,14 +208,14 @@ static void copy_gps_location(struct gpsTracker &gps, struct dive *d)
}
#define SAME_GROUP 6 * 3600 /* six hours */
-void GpsLocation::applyLocations()
+bool GpsLocation::applyLocations()
{
int i;
bool changed = false;
int last = 0;
int cnt = m_trackers.count();
if (cnt == 0)
- return;
+ return false;
// create a table with the GPS information
QList<struct gpsTracker> gpsTable = m_trackers.values();
@@ -317,6 +317,7 @@ void GpsLocation::applyLocations()
}
if (changed)
mark_divelist_changed(true);
+ return changed;
}
QMap<qint64, gpsTracker> GpsLocation::currentGPSInfo() const