summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/gpslocation.cpp8
-rw-r--r--core/gpslocation.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/core/gpslocation.cpp b/core/gpslocation.cpp
index 974b9636b..c12d0a1d1 100644
--- a/core/gpslocation.cpp
+++ b/core/gpslocation.cpp
@@ -225,14 +225,14 @@ static void copy_gps_location(struct gpsTracker &gps, struct dive *d)
#define SET_LOCATION(_dive, _gpsfix, _mark) \
{ \
copy_gps_location(_gpsfix, _dive); \
- changed = true; \
+ changed++; \
last = _mark; \
}
-bool GpsLocation::applyLocations()
+int GpsLocation::applyLocations()
{
int i;
- bool changed = false;
+ int changed = 0;
int last = 0;
int cnt = m_trackers.count();
if (cnt == 0)
@@ -317,7 +317,7 @@ bool GpsLocation::applyLocations()
}
}
- if (changed)
+ if (changed > 0)
mark_divelist_changed(true);
return changed;
}
diff --git a/core/gpslocation.h b/core/gpslocation.h
index 02377bfca..0a333947b 100644
--- a/core/gpslocation.h
+++ b/core/gpslocation.h
@@ -27,7 +27,7 @@ public:
~GpsLocation();
static GpsLocation *instance();
static bool hasInstance();
- bool applyLocations();
+ int applyLocations();
int getGpsNum() const;
bool hasLocationsSource();
QString currentPosition();