From 510be3c7b9c0cfe715f914bb27a36e43d6acd47a Mon Sep 17 00:00:00 2001 From: "James C. Norris" Date: Wed, 26 Oct 2016 06:00:41 -0700 Subject: Fix major bug introduced in r258 [61b6d7b3de61]: SetDone() was being called on the "Files" child since that wouldn't contain subdirectories, but now that the "Files" child is no longer supported, it shouldn't be called on the current node. --- windirstat/item.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'windirstat') diff --git a/windirstat/item.cpp b/windirstat/item.cpp index de592d6..b271359 100644 --- a/windirstat/item.cpp +++ b/windirstat/item.cpp @@ -1120,10 +1120,6 @@ void CItem::DoSomeWork(DWORD ticks) // if(filesFolder != NULL) // { this->UpwardAddFiles(fileCount); - if(dirCount > 0 && fileCount > 0) - { - this->SetDone(); - } // } UpwardAddSubdirs(dirCount); @@ -1144,10 +1140,6 @@ void CItem::DoSomeWork(DWORD ticks) if(GetType() == IT_DRIVE || GetType() == IT_DIRECTORY || GetType() == IT_MYCOMPUTER) { - // - ASSERT(IsReadJobDone()); if(IsDone()) { -- cgit v1.2.3