Skip to content

Commit

Permalink
Issue #602 - fix last artwork being shown when file is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
mickelson committed Feb 26, 2020
1 parent c74fd5f commit 3caa3b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/path_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@ bool FePathCache::get_filename_from_base(
if ( itr == cache.end() )
return false;

do
while ( ( itr != cache.end() )
&& ( strncasecmp( (*itr).c_str(), base_name.c_str(), base_name.size() ) == 0 ))
{
if ( filter && !(tail_compare( *itr, filter )) )
out_list.push_back( path + *itr );
else
in_list.push_back( path + *itr );

++itr;
} while ( ( itr != cache.end() )
&& ( strncasecmp( (*itr).c_str(), base_name.c_str(), base_name.size() ) == 0 ));
}

return !(in_list.empty());
}
Expand Down

0 comments on commit 3caa3b5

Please sign in to comment.