mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-22 00:42:04 +02:00
* Empty album names are valid, but not indexable.
This commit is contained in:
parent
1c48491f41
commit
4b6064873f
src/libtomahawk/database
@ -83,8 +83,7 @@ DatabaseCommand_UpdateSearchIndex::exec( DatabaseImpl* db )
|
||||
ida.id = q.value( 0 ).toUInt();
|
||||
ida.album = q.value( 1 ).toString();
|
||||
|
||||
if ( !ida.album.isEmpty() )
|
||||
db->m_fuzzyIndex->appendFields( ida );
|
||||
db->m_fuzzyIndex->appendFields( ida );
|
||||
}
|
||||
|
||||
tDebug( LOGVERBOSE ) << "Building index finished.";
|
||||
|
@ -181,7 +181,7 @@ FuzzyIndex::appendFields( const IndexData& data )
|
||||
Field::STORE_YES | Field::INDEX_NO ) ) );
|
||||
}
|
||||
else
|
||||
Q_ASSERT( false );
|
||||
return;
|
||||
|
||||
m_luceneWriter->addDocument( &doc );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user