mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 23:39:42 +01:00
* Only try to update playlist if it's loaded.
This commit is contained in:
parent
01e3c3b5b3
commit
babc3cf0d3
@ -103,12 +103,17 @@ DatabaseCommand_SetPlaylistRevision::postCommitHook()
|
||||
return;
|
||||
}
|
||||
|
||||
playlist->setRevision( m_newrev,
|
||||
orderedentriesguids,
|
||||
m_previous_rev_orderedguids,
|
||||
true, // this *is* the newest revision so far
|
||||
m_addedmap,
|
||||
m_applied );
|
||||
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user