From 704c87b26783410b4a3a5455c57d2c4a7fc4136e Mon Sep 17 00:00:00 2001 From: Norman Back Date: Mon, 4 Jun 2012 20:38:44 +0100 Subject: [PATCH] Use hidden album art images when scanning the library Fixes issue 2973 --- src/library/librarywatcher.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/library/librarywatcher.cpp b/src/library/librarywatcher.cpp index 3d95b33bf..7a7810f2f 100644 --- a/src/library/librarywatcher.cpp +++ b/src/library/librarywatcher.cpp @@ -257,7 +257,7 @@ void LibraryWatcher::ScanSubdirectory( // First we "quickly" get a list of the files in the directory that we // think might be music. While we're here, we also look for new subdirectories // and possible album artwork. - QDirIterator it(path, QDir::Dirs | QDir::Files | QDir::NoDotAndDotDot); + QDirIterator it(path, QDir::Dirs | QDir::Files | QDir::Hidden | QDir::NoDotAndDotDot); while (it.hasNext()) { if (stop_requested_) return; @@ -265,7 +265,7 @@ void LibraryWatcher::ScanSubdirectory( QFileInfo child_info(child); if (child_info.isDir()) { - if (!t->HasSeenSubdir(child)) { + if (!child_info.isHidden() && !t->HasSeenSubdir(child)) { // We haven't seen this subdirectory before - add it to a list and // later we'll tell the backend about it and scan it. Subdirectory new_subdir; @@ -280,7 +280,7 @@ void LibraryWatcher::ScanSubdirectory( if (sValidImages.contains(ext_part)) album_art[dir_part] << child; - else + else if (!child_info.isHidden()) files_on_disk << child; } }