Use isLocalFile()

This commit is contained in:
Jonas Kvinge 2020-02-12 00:06:19 +01:00
parent 31506662db
commit 533da8f89c
1 changed files with 1 additions and 1 deletions

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);
}
}