Changeset 12413


Ignore:
Timestamp:
08/31/10 03:07:02 (18 months ago)
Author:
adamk
Message:

Correctly delete removed trailing files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Wx/Directory.pm

    r12412 r12413  
    476476    } 
    477477 
     478    # Remove any deleted trailing entries 
     479    while ( $child->IsOk ) { 
     480        # Deleted entry, remove the current position 
     481        my $delete = $child; 
     482        ($child, $cookie) = $tree->GetNextChild($cursor, $cookie); 
     483        $tree->Delete($delete); 
     484    } 
     485 
    478486    return 1; 
    479487} 
Note: See TracChangeset for help on using the changeset viewer.