Changeset 4719


Ignore:
Timestamp:
01/22/10 09:22:30 (10 years ago)
Author:
ronosman
Message:

Bug 1367 fixed : crash when refreshing categories.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/pLoader/trunk/src/Uploader/GUI/Frame.pm

    r4718 r4719  
    10291029 
    10301030    $self->tree->SetImageList( $self->treeimglist ); 
    1031     $self->populate_tree_categories($self->tree) if !wxTheApp->use_offline; 
     1031    $self->populate_tree_categories if !wxTheApp->use_offline; 
    10321032    $self->tree ; 
    10331033} 
     
    10351035 
    10361036sub populate_tree_categories { 
    1037     my ( $self, $tree ) = @_; 
     1037    my ( $self ) = @_; 
    10381038 
    10391039    $self->populate_tree( 
    1040         $tree, 
     1040        $self->tree, 
    10411041        wxTheApp->pwg->categories, 
    10421042    ) if defined wxTheApp->pwg ; 
     
    10921092 
    10931093} 
    1094  
    1095  
    1096  
    1097  
    1098 sub _populate_notebook { 
    1099     my ( $self, $book, $pages, $position ) = @_;     
    1100  
    1101     my $i = 0; 
    1102     map { 
    1103         my $icon = Wx::Icon->new(); 
    1104         eval { $icon->LoadFile($_->[2], $_->[3]) ; } 
    1105             if defined $_->[2]; 
    1106         my $nb_icon = Wx::Bitmap->new( $icon ); 
    1107         defined $position ? 
    1108             $book->InsertPage($position, $_->[0], 
    1109                     $_->[1], 1, $nb_icon ) 
    1110                           : 
    1111             $book->AddPage($_->[0], 
    1112                     $_->[1], 0, $nb_icon ); 
    1113  
    1114         $i++; 
    1115     } @$pages; 
    1116  
    1117 } 
    1118  
    11191094 
    11201095sub _initMenus { 
Note: See TracChangeset for help on using the changeset viewer.