From 38d4cb40c8d3aa16bd3a16f142a0bb027a46a38b Mon Sep 17 00:00:00 2001 From: David Sansome Date: Wed, 5 May 2010 16:56:42 +0000 Subject: [PATCH] Fix an infinite recursion bug. Fixes issue #284 --- src/librarywatcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librarywatcher.cpp b/src/librarywatcher.cpp index ff600ba48..78eb921f5 100644 --- a/src/librarywatcher.cpp +++ b/src/librarywatcher.cpp @@ -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); } }