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

View File

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