1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-17 03:45:56 +01:00

Fix an infinite recursion bug. Fixes issue #284

This commit is contained in:
David Sansome 2010-05-05 16:56:42 +00:00
parent a81d0c55e7
commit 38d4cb40c8

View File

@ -180,7 +180,7 @@ void LibraryWatcher::ScanSubdirectory(
// If one has been removed, "rescan" it to get the deleted songs
SubdirectoryList previous_subdirs = t->GetImmediateSubdirs(path);
foreach (const Subdirectory& subdir, previous_subdirs) {
if (!QFile::exists(subdir.path)) {
if (!QFile::exists(subdir.path) && subdir.path != path) {
ScanSubdirectory(subdir.path, subdir, t, true);
}
}