items.append(PlaylistItem (PlaylistItem (fname)));
}
}
- if (!items.isEmpty())
+// if (!items.isEmpty())
+ if (items.size () > index)
{
metaInformationResolver->setCurrentSource(items.at(index).source);
lastMetaRead = index;
items.append(PlaylistItem (string));
}
}
- if (!items.isEmpty())
+// if (!items.isEmpty())
+ if (items.size () > index)
{
metaInformationResolver->setCurrentSource(items.at(index).source);
lastMetaRead = index;
appendPlaylist(filename);
else if (filename.right(4).toLower() == ".pls")
appendPlaylistPLS(filename);
- if (!items.isEmpty())
+ if (items.size () > index)
+// if (!items.isEmpty())
{
metaInformationResolver->setCurrentSource(items.at(index).source);
lastMetaRead = index;