CollectionWatcher: Ignore temp files
This commit is contained in:
@@ -485,7 +485,10 @@ void CollectionWatcher::ScanSubdirectory(const QString &path, const Subdirectory
|
|||||||
else {
|
else {
|
||||||
QString ext_part(ExtensionPart(child));
|
QString ext_part(ExtensionPart(child));
|
||||||
QString dir_part(DirectoryPart(child));
|
QString dir_part(DirectoryPart(child));
|
||||||
if (sValidImages.contains(ext_part)) {
|
if (child_info.suffix() == "tmp" || child_info.baseName() == "qt_temp") {
|
||||||
|
t->AddToProgress(1);
|
||||||
|
}
|
||||||
|
else if (sValidImages.contains(ext_part)) {
|
||||||
album_art[dir_part] << child;
|
album_art[dir_part] << child;
|
||||||
t->AddToProgress(1);
|
t->AddToProgress(1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user