mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 23:39:42 +01:00
* Prevented over-zealous assert in PlaylistModel.
This commit is contained in:
parent
2be3ebd90b
commit
445d6ca84c
@ -383,6 +383,9 @@ PlaylistModel::parsedDroppedTracks( QList< query_ptr > tracks )
|
||||
void
|
||||
PlaylistModel::beginPlaylistChanges()
|
||||
{
|
||||
if ( m_playlist.isNull() || !m_playlist->author()->isLocal() )
|
||||
return;
|
||||
|
||||
Q_ASSERT( !m_changesOngoing );
|
||||
m_changesOngoing = true;
|
||||
}
|
||||
@ -391,6 +394,9 @@ PlaylistModel::beginPlaylistChanges()
|
||||
void
|
||||
PlaylistModel::endPlaylistChanges()
|
||||
{
|
||||
if ( m_playlist.isNull() || !m_playlist->author()->isLocal() )
|
||||
return;
|
||||
|
||||
if ( m_changesOngoing )
|
||||
{
|
||||
m_changesOngoing = false;
|
||||
@ -401,9 +407,6 @@ PlaylistModel::endPlaylistChanges()
|
||||
Q_ASSERT( false );
|
||||
}
|
||||
|
||||
if ( m_playlist.isNull() || !m_playlist->author()->isLocal() )
|
||||
return;
|
||||
|
||||
QList<plentry_ptr> l = playlistEntries();
|
||||
QString newrev = uuid();
|
||||
m_waitForRevision << newrev;
|
||||
|
Loading…
x
Reference in New Issue
Block a user