1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-14 09:44:51 +01:00

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) {
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;
}