mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 19:23:24 +00:00
Import: Fix Application Hang when Cancelling the Download Dialogue.
Fix a bug causing the 'Download from dive computer' dialogue to hang when the user attempts to cancel the dialogue after successfully downloading one or more dives. Fixes #4176. Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
parent
5ac1922d84
commit
46cf2fc086
1 changed files with 1 additions and 2 deletions
|
@ -66,8 +66,7 @@ struct divelog &divelog::operator=(divelog &&log)
|
|||
|
||||
void divelog::clear()
|
||||
{
|
||||
while (dives->nr)
|
||||
delete_single_dive(0);
|
||||
clear_dive_table(dives);
|
||||
while (sites->nr)
|
||||
delete_dive_site(get_dive_site(0, sites), sites);
|
||||
if (trips->nr != 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue