Use static QFileInfo::exists

This commit is contained in:
Jonas Kvinge 2021-06-20 02:26:30 +02:00
parent bee30e572f
commit 310995fb87

View File

@ -928,7 +928,7 @@ bool CollectionWatcher::FindSongsByFingerprint(const QString &file, const SongLi
for (const Song &song : songs) { for (const Song &song : songs) {
QString filename = song.url().toLocalFile(); 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; *out << song;
return true; return true;
} }