mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +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;
|
PlItem* plitem;
|
||||||
QList<plentry_ptr> entries = playlist->entries();
|
QList<plentry_ptr> entries = playlist->entries();
|
||||||
|
if ( entries.count() )
|
||||||
|
{
|
||||||
int c = rowCount( QModelIndex() );
|
int c = rowCount( QModelIndex() );
|
||||||
|
|
||||||
qDebug() << "starting loading" << playlist->title();
|
qDebug() << "starting loading" << playlist->title();
|
||||||
@@ -82,6 +84,7 @@ PlaylistModel::loadPlaylist( const Tomahawk::playlist_ptr& playlist )
|
|||||||
}
|
}
|
||||||
|
|
||||||
emit endInsertRows();
|
emit endInsertRows();
|
||||||
|
}
|
||||||
|
|
||||||
qDebug() << rowCount( QModelIndex() );
|
qDebug() << rowCount( QModelIndex() );
|
||||||
emit loadingFinished();
|
emit loadingFinished();
|
||||||
|
Reference in New Issue
Block a user