Use QUrl::isLocalFile()

This commit is contained in:
Jonas Kvinge
2019-07-09 21:43:56 +02:00
parent f4b1ef4d04
commit 7fa1461d5e
13 changed files with 20 additions and 20 deletions

View File

@@ -1826,7 +1826,7 @@ void Playlist::InvalidateDeletedSongs() {
PlaylistItemPtr item = items_[row];
Song song = item->Metadata();
if (song.url().scheme() == "file") {
if (song.url().isLocalFile()) {
bool exists = QFile::exists(song.url().toLocalFile());
if (!exists && !item->HasForegroundColor(kInvalidSongPriority)) {