mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 07:07:05 +02:00
* Fixed creating index when there is only a local source.
This commit is contained in:
@@ -121,7 +121,7 @@ DBSyncConnection::trigger()
|
|||||||
void
|
void
|
||||||
DBSyncConnection::check()
|
DBSyncConnection::check()
|
||||||
{
|
{
|
||||||
qDebug() << Q_FUNC_INFO << m_source->id();
|
qDebug() << Q_FUNC_INFO << this << m_source->id();
|
||||||
if ( m_state != UNKNOWN && m_state != SYNCED )
|
if ( m_state != UNKNOWN && m_state != SYNCED )
|
||||||
{
|
{
|
||||||
qDebug() << "Syncing in progress already.";
|
qDebug() << "Syncing in progress already.";
|
||||||
|
@@ -359,5 +359,11 @@ Source::reportSocialAttributesChanged( DatabaseCommand_SocialAction* action )
|
|||||||
void
|
void
|
||||||
Source::updateIndexWhenSynced()
|
Source::updateIndexWhenSynced()
|
||||||
{
|
{
|
||||||
|
if ( isLocal() )
|
||||||
|
{
|
||||||
|
DatabaseCommand* cmd = new DatabaseCommand_UpdateSearchIndex();
|
||||||
|
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>( cmd ) );
|
||||||
|
}
|
||||||
|
else
|
||||||
m_updateIndexWhenSynced = true;
|
m_updateIndexWhenSynced = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user