mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-22 08:52:12 +02:00
* Don't assert when creating a fresh playlist.
This commit is contained in:
parent
4f14ce96cb
commit
f32c1f1338
src/libtomahawk/database
@ -179,7 +179,7 @@ DatabaseCommand_SetPlaylistRevision::exec( DatabaseImpl* lib )
|
||||
|
||||
qDebug() << "Currentrevision:" << m_currentRevision << "oldrev:" << m_oldrev;
|
||||
// if optimistic locking is ok, update current revision to this new one
|
||||
if( m_currentRevision == m_oldrev )
|
||||
if ( m_currentRevision == m_oldrev )
|
||||
{
|
||||
qDebug() << "updating current revision, optimistic locking ok";
|
||||
|
||||
@ -210,9 +210,9 @@ DatabaseCommand_SetPlaylistRevision::exec( DatabaseImpl* lib )
|
||||
m_previous_rev_orderedguids = v.toStringList();
|
||||
}
|
||||
}
|
||||
else
|
||||
else if ( !m_oldrev.isEmpty() )
|
||||
{
|
||||
qDebug() << "Not updating current revision, optimistic locking fail";
|
||||
tDebug() << "Not updating current revision, optimistic locking fail";
|
||||
Q_ASSERT( false );
|
||||
}
|
||||
}
|
||||
|
@ -100,6 +100,7 @@ protected:
|
||||
QMap<QString, Tomahawk::plentry_ptr> m_addedmap;
|
||||
|
||||
QString m_currentRevision;
|
||||
|
||||
private:
|
||||
QVariantList m_orderedguids;
|
||||
QList<Tomahawk::plentry_ptr> m_addedentries, m_entries;
|
||||
|
Loading…
x
Reference in New Issue
Block a user