mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Mobile: don't call clear_dive() on deleteDive
clear_dive() will be called anyway in the subsequent call to copy_dive(). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
41089b74a9
commit
fbc4b2ac72
1 changed files with 1 additions and 3 deletions
|
@ -1294,11 +1294,9 @@ void QMLManager::deleteDive(int id)
|
|||
appendTextToLog("trying to delete non-existing dive");
|
||||
return;
|
||||
}
|
||||
// clean up (or create) the storage for the deleted dive and trip (if applicable)
|
||||
// create the storage for the deleted dive and trip (if applicable)
|
||||
if (!deletedDive)
|
||||
deletedDive = alloc_dive();
|
||||
else
|
||||
clear_dive(deletedDive);
|
||||
copy_dive(d, deletedDive);
|
||||
if (!deletedTrip) {
|
||||
deletedTrip = (struct dive_trip *)calloc(1, sizeof(struct dive_trip));
|
||||
|
|
Loading…
Reference in a new issue