From 310995fb87a10e43760cc4dfcc742547474eee85 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 20 Jun 2021 02:26:30 +0200 Subject: [PATCH] Use static QFileInfo::exists --- src/collection/collectionwatcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collection/collectionwatcher.cpp b/src/collection/collectionwatcher.cpp index 044156c23..214a37f4d 100644 --- a/src/collection/collectionwatcher.cpp +++ b/src/collection/collectionwatcher.cpp @@ -928,7 +928,7 @@ bool CollectionWatcher::FindSongsByFingerprint(const QString &file, const SongLi for (const Song &song : songs) { QString filename = song.url().toLocalFile(); - if (song.fingerprint() == fingerprint && (file == filename || !QFileInfo(filename).exists())) { + if (song.fingerprint() == fingerprint && (file == filename || !QFileInfo::exists(filename))) { *out << song; return true; }