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>
This commit is contained in:
Tomaz Canabrava 2015-08-31 22:01:25 -03:00 committed by Dirk Hohndel
parent 1ef20ee5d8
commit 2da439f34c
2 changed files with 11 additions and 1 deletions

View file

@ -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]);