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:
parent
bee30e572f
commit
310995fb87
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user