mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-07 20:53:25 +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()
|
void divelog::clear()
|
||||||
{
|
{
|
||||||
while (dives->nr)
|
clear_dive_table(dives);
|
||||||
delete_single_dive(0);
|
|
||||||
while (sites->nr)
|
while (sites->nr)
|
||||||
delete_dive_site(get_dive_site(0, sites), sites);
|
delete_dive_site(get_dive_site(0, sites), sites);
|
||||||
if (trips->nr != 0) {
|
if (trips->nr != 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue