Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/windirstat.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames C. Norris <jnorris@gmail.com>2016-10-26 16:00:41 +0300
committerJames C. Norris <jnorris@gmail.com>2016-10-26 16:00:41 +0300
commit510be3c7b9c0cfe715f914bb27a36e43d6acd47a (patch)
tree35e3e93b84871731b1cfef4de3cfa1bcd7d4bd7e
parentb0c8e9fc8af7c9b9c7a1e2ae3a97787ba7dd5a0e (diff)
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.
-rw-r--r--windirstat/item.cpp8
1 files changed, 0 insertions, 8 deletions
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)
{
- // <HACK! IsDone() is set after first pass with no decend into dirs
- UpwardSetUndone();
- // HACK>
-
ASSERT(IsReadJobDone());
if(IsDone())
{