summaryrefslogtreecommitdiffstats
path: root/divesite.c
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-08-31 22:01:25 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-31 18:43:52 -0700
commit2da439f34c525c8f096a55674902f6bc7d4a23b4 (patch)
treeacd46024b9c582f04b4007ea928452704c31cfc5 /divesite.c
parent1ef20ee5d8b13a5413ec5aabf16aaa1f1bdd65fd (diff)
downloadsubsurface-2da439f34c525c8f096a55674902f6bc7d4a23b4.tar.gz
Correctly refresh dive site list
And also show a warning to the user saying that that action is non-cancelable. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divesite.c')
-rw-r--r--divesite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/divesite.c b/divesite.c
index 96c41d1bf..a8c5ea4be 100644
--- a/divesite.c
+++ b/divesite.c
@@ -292,7 +292,7 @@ void merge_dive_sites(uint32_t ref, uint32_t* uuids, int count)
}
}
- for(int i = 0; i < count; i++) {
+ for(i = 0; i < count; i++) {
if (uuids[i] == ref)
continue;
delete_dive_site(uuids[i]);