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) {
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user