summaryrefslogtreecommitdiffstats
path: root/ProcessList.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2010-11-24 12:00:34 +0000
committerHisham Muhammad <hisham@gobolinux.org>2010-11-24 12:00:34 +0000
commit5effb12e46f5d1b153ce2099d56fea3f7c2ed0e1 (patch)
treed51a6e3cca823a132fc4f286ccd1da6cbc502f31 /ProcessList.c
parent941ad72f674edff8e202e73ef837cea9c9d46411 (diff)
Fix behavior of expand/collapse-tree. Thanks Rob for the heads up!
Diffstat (limited to 'ProcessList.c')
-rw-r--r--ProcessList.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ProcessList.c b/ProcessList.c
index 5cc448cb..76944b21 100644
--- a/ProcessList.c
+++ b/ProcessList.c
@@ -257,7 +257,6 @@ static void ProcessList_buildTree(ProcessList* this, pid_t pid, int level, int i
Process* process = (Process*) (Vector_get(children, i));
if (!show)
process->show = false;
- show = show ? process->showChildren : false;
int s = this->processes2->items;
if (direction == 1)
Vector_add(this->processes2, process);
@@ -265,7 +264,7 @@ static void ProcessList_buildTree(ProcessList* this, pid_t pid, int level, int i
Vector_insert(this->processes2, 0, process);
assert(this->processes2->items == s+1); (void)s;
int nextIndent = indent | (1 << level);
- ProcessList_buildTree(this, process->pid, level+1, (i < size - 1) ? nextIndent : indent, direction, show);
+ ProcessList_buildTree(this, process->pid, level+1, (i < size - 1) ? nextIndent : indent, direction, show ? process->showChildren : false);
process->indent = nextIndent;
}
Vector_delete(children);

© 2014-2024 Faster IT GmbH | imprint | privacy policy