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

* Fixed creating index when there is only a local source.

This commit is contained in:
Christian Muehlhaeuser 2011-11-11 23:27:43 +01:00
parent 09a7d790ad
commit 85c7cb4186
2 changed files with 8 additions and 2 deletions

View File

@ -121,7 +121,7 @@ DBSyncConnection::trigger()
void
DBSyncConnection::check()
{
qDebug() << Q_FUNC_INFO << m_source->id();
qDebug() << Q_FUNC_INFO << this << m_source->id();
if ( m_state != UNKNOWN && m_state != SYNCED )
{
qDebug() << "Syncing in progress already.";

View File

@ -359,5 +359,11 @@ Source::reportSocialAttributesChanged( DatabaseCommand_SocialAction* action )
void
Source::updateIndexWhenSynced()
{
m_updateIndexWhenSynced = true;
if ( isLocal() )
{
DatabaseCommand* cmd = new DatabaseCommand_UpdateSearchIndex();
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>( cmd ) );
}
else
m_updateIndexWhenSynced = true;
}