mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
* Only try to update playlist if it's loaded.
This commit is contained in:
@@ -103,12 +103,17 @@ DatabaseCommand_SetPlaylistRevision::postCommitHook()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( playlist->loaded() )
|
||||||
|
{
|
||||||
playlist->setRevision( m_newrev,
|
playlist->setRevision( m_newrev,
|
||||||
orderedentriesguids,
|
orderedentriesguids,
|
||||||
m_previous_rev_orderedguids,
|
m_previous_rev_orderedguids,
|
||||||
true, // this *is* the newest revision so far
|
true, // this *is* the newest revision so far
|
||||||
m_addedmap,
|
m_addedmap,
|
||||||
m_applied );
|
m_applied );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
playlist->setCurrentrevision( m_newrev );
|
||||||
|
|
||||||
if ( source()->isLocal() )
|
if ( source()->isLocal() )
|
||||||
Servent::instance()->triggerDBSync();
|
Servent::instance()->triggerDBSync();
|
||||||
|
Reference in New Issue
Block a user