mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
* Don't try to add an empty track-list to the playlist.
This commit is contained in:
@@ -66,6 +66,8 @@ PlaylistModel::loadPlaylist( const Tomahawk::playlist_ptr& playlist )
|
||||
|
||||
PlItem* plitem;
|
||||
QList<plentry_ptr> entries = playlist->entries();
|
||||
if ( entries.count() )
|
||||
{
|
||||
int c = rowCount( QModelIndex() );
|
||||
|
||||
qDebug() << "starting loading" << playlist->title();
|
||||
@@ -82,6 +84,7 @@ PlaylistModel::loadPlaylist( const Tomahawk::playlist_ptr& playlist )
|
||||
}
|
||||
|
||||
emit endInsertRows();
|
||||
}
|
||||
|
||||
qDebug() << rowCount( QModelIndex() );
|
||||
emit loadingFinished();
|
||||
|
Reference in New Issue
Block a user