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