[baobab] Scanner: propagate error state to parent nodes
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab] Scanner: propagate error state to parent nodes
- Date: Mon, 8 Jul 2013 09:12:11 +0000 (UTC)
commit 99de9a331f7371e0db90d5a8e4298facdb198531
Author: Stefano Facchini <stefano facchini gmail com>
Date: Mon Jul 8 11:06:34 2013 +0200
Scanner: propagate error state to parent nodes
This was the intended behavior since the beginning.
https://bugzilla.gnome.org/show_bug.cgi?id=686136
src/baobab-scanner.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/baobab-scanner.vala b/src/baobab-scanner.vala
index be5a006..d160faf 100644
--- a/src/baobab-scanner.vala
+++ b/src/baobab-scanner.vala
@@ -190,7 +190,7 @@ namespace Baobab {
results.alloc_size += child_results.alloc_size;
results.elements += child_results.elements;
results.max_depth = int.max (results.max_depth, child_results.max_depth + 1);
- if (child_results.error != null) {
+ if (child_results.error != null || child_results.child_error) {
results.child_error = true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]