1
0
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:
Christian Muehlhaeuser
2010-12-01 01:20:26 +01:00
parent 9c379647aa
commit 245ed98b88

View File

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