Use static QFileInfo::exists

This commit is contained in:
Jonas Kvinge 2021-06-20 02:26:30 +02:00
parent bee30e572f
commit 310995fb87
1 changed files with 1 additions and 1 deletions

View File

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