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:
parent
09a7d790ad
commit
85c7cb4186
@ -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.";
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user