Skip to content
Permalink
Browse files

another fix for errors when FilterPanes are updated before their filt…

…er initialization
  • Loading branch information...
squentin committed Jan 19, 2011
1 parent 5eeeb00 commit e0c6187eb20e458751f99d028bca53ef54a20d2c
Showing with 4 additions and 4 deletions.
  1. +4 −4 gmusicbrowser_list.pm
@@ -1929,13 +1929,13 @@ sub SongsRemoved_cb

sub updatefilter
{ my ($self,undef,$nb)=@_;
delete $::ToDo{'9_FPfull'.$self};
my $force=delete $self->{needupdate};

my $group=$self->{group};
my $mynb=$self->{nb};
return if $nb && $nb> $mynb;

delete $::ToDo{'9_FPfull'.$self};
my $force=delete $self->{needupdate};
warn "Filtering list for FilterPane$mynb\n" if $::debug;
my $group=$self->{group};
my $currentf=$::Filters{$group}[$mynb+1];
$self->{resetbutton}->set_sensitive( !Filter::is_empty($currentf) );
my $filt=Filter->newadd(TRUE, map($::Filters{$group}[$_+1],0..($mynb-1)) );

0 comments on commit e0c6187

Please sign in to comment.
You can’t perform that action at this time.