1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-01 03:40:16 +02:00

* Empty album names are valid, but not indexable.

This commit is contained in:
Christian Muehlhaeuser
2013-05-15 14:57:44 +02:00
parent 1c48491f41
commit 4b6064873f
2 changed files with 2 additions and 3 deletions

View File

@@ -83,7 +83,6 @@ DatabaseCommand_UpdateSearchIndex::exec( DatabaseImpl* db )
ida.id = q.value( 0 ).toUInt(); ida.id = q.value( 0 ).toUInt();
ida.album = q.value( 1 ).toString(); ida.album = q.value( 1 ).toString();
if ( !ida.album.isEmpty() )
db->m_fuzzyIndex->appendFields( ida ); db->m_fuzzyIndex->appendFields( ida );
} }

View File

@@ -181,7 +181,7 @@ FuzzyIndex::appendFields( const IndexData& data )
Field::STORE_YES | Field::INDEX_NO ) ) ); Field::STORE_YES | Field::INDEX_NO ) ) );
} }
else else
Q_ASSERT( false ); return;
m_luceneWriter->addDocument( &doc ); m_luceneWriter->addDocument( &doc );
} }