Skip to content
Permalink
Browse files

fix setting a filter on a songlist/songtree in playlist mode resultin…

…g in a static list
  • Loading branch information...
squentin committed Nov 11, 2011
1 parent 3ca1d2b commit ee5710d986e6cdb4ec72b577956cf9feb8306fd8
Showing with 3 additions and 2 deletions.
  1. +3 −2 gmusicbrowser_list.pm
@@ -521,15 +521,16 @@ sub Sort
}
sub SetFilter
{ my ($self,$filter)=@_;# ::red($self->{type},' ',($self->{filter} || 'no'), ' ',$filter);::callstack();
my $list;
if ($self->{hideif} eq 'nofilter')
{ $self->Hide($filter->is_empty);
return if $filter->is_empty;
}
$self->{filter}=$filter;
return if $self->{ignoreSetFilter};

$list=$filter->filter;
if ($self->{type} eq 'A') { $self->{array}->SetFilter($filter); return }

my $list=$filter->filter;
Songs::SortList( $list, $self->{sort} ) if exists $self->{sort};
$self->{array}->Replace($list,filter=>$filter);
}

0 comments on commit ee5710d

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