1
0
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:
Christian Muehlhaeuser 2013-04-26 02:42:39 +02:00
parent 01e3c3b5b3
commit babc3cf0d3

View File

@ -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();