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:
@@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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 );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user