From 1c48491f41036e6a502545feea3f690ca753fa8f Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Wed, 15 May 2013 14:56:27 +0200 Subject: [PATCH] * Probably fixes Teo's indexing assert. --- src/libtomahawk/database/DatabaseCommand_UpdateSearchIndex.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/database/DatabaseCommand_UpdateSearchIndex.cpp b/src/libtomahawk/database/DatabaseCommand_UpdateSearchIndex.cpp index 3f0b86df4..978ee276a 100644 --- a/src/libtomahawk/database/DatabaseCommand_UpdateSearchIndex.cpp +++ b/src/libtomahawk/database/DatabaseCommand_UpdateSearchIndex.cpp @@ -83,7 +83,8 @@ DatabaseCommand_UpdateSearchIndex::exec( DatabaseImpl* db ) ida.id = q.value( 0 ).toUInt(); ida.album = q.value( 1 ).toString(); - db->m_fuzzyIndex->appendFields( ida ); + if ( !ida.album.isEmpty() ) + db->m_fuzzyIndex->appendFields( ida ); } tDebug( LOGVERBOSE ) << "Building index finished.";