1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-25 02:09:48 +01:00

Add some methods to ensure that there is always at least one job that can be going with ACL checks, for debugging/verification

This commit is contained in:
Jeff Mitchell 2012-07-08 21:18:09 -04:00
parent 3e1310eac4
commit d24ff66696

View File

@ -143,6 +143,8 @@ TomahawkSettings::TomahawkSettings( QObject* parent )
createSpotifyAccount();
if ( lastfmAcct.isEmpty() )
createLastFmAccount();
QTimer::singleShot( 0, this, SLOT( updateIndex() ) );
}
@ -1302,6 +1304,8 @@ TomahawkSettings::updateIndex()
{
DatabaseCommand* cmd = new DatabaseCommand_UpdateSearchIndex();
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>( cmd ) );
QTimer::singleShot( 2000, this, SLOT( updateIndex() ) );
}