1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

* Moved reindexing to FuzzyIndex.

This commit is contained in:
Christian Muehlhaeuser 2012-06-07 13:25:33 +02:00
parent 7dabdc0a68
commit 2389770d8a
2 changed files with 0 additions and 14 deletions

View File

@ -27,7 +27,6 @@
#include <QFile>
#include "database/Database.h"
#include "DatabaseCommand_UpdateSearchIndex.h"
#include "SourceList.h"
#include "Result.h"
#include "Artist.h"
@ -75,8 +74,6 @@ DatabaseImpl::DatabaseImpl( const QString& dbname, Database* parent )
query.exec( "UPDATE source SET isonline = 'false'" );
m_fuzzyIndex = new FuzzyIndex( this, schemaUpdated );
if ( schemaUpdated )
QTimer::singleShot( 0, this, SLOT( updateIndex() ) );
tDebug( LOGVERBOSE ) << "Loaded index:" << t.elapsed();
if ( qApp->arguments().contains( "--dumpdb" ) )
@ -774,11 +771,3 @@ DatabaseImpl::openDatabase( const QString& dbname, bool checkSchema )
return schemaUpdated;
}
void
DatabaseImpl::updateIndex()
{
DatabaseCommand* cmd = new DatabaseCommand_UpdateSearchIndex();
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>( cmd ) );
}

View File

@ -81,9 +81,6 @@ public:
signals:
void indexReady();
private slots:
void updateIndex();
private:
DatabaseImpl( Database* parent, const QString& dbname );
void setFuzzyIndex( FuzzyIndex* fi ) { m_fuzzyIndex = fi; }