Only invalidate local files

This commit is contained in:
Jonas Kvinge
2019-04-20 15:22:56 +02:00
parent 7bcd5ba14c
commit ba76385a2f

View File

@@ -1820,7 +1820,7 @@ void Playlist::InvalidateDeletedSongs() {
PlaylistItemPtr item = items_[row];
Song song = item->Metadata();
if (!song.is_stream()) {
if (song.url().scheme() == "file") {
bool exists = QFile::exists(song.url().toLocalFile());
if (!exists && !item->HasForegroundColor(kInvalidSongPriority)) {
@@ -1835,7 +1835,8 @@ void Playlist::InvalidateDeletedSongs() {
}
}
ReloadItems(invalidated_rows);
if (!invalidated_rows.isEmpty())
ReloadItems(invalidated_rows);
}