1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-05 12:56:52 +01:00

Use isLocalFile()

This commit is contained in:
Jonas Kvinge 2020-02-12 00:06:19 +01:00
parent 31506662db
commit 533da8f89c

View File

@ -1864,7 +1864,7 @@ void Playlist::RemoveDeletedSongs() {
PlaylistItemPtr item = items_[row];
Song song = item->Metadata();
if (!song.is_stream() && !QFile::exists(song.url().toLocalFile())) {
if (song.url().isLocalFile() && !QFile::exists(song.url().toLocalFile())) {
rows_to_remove.append(row);
}
}