summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/gtk/bookmarks/bookmark_tree_model.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/gtk/bookmarks/bookmark_tree_model.cc')
-rw-r--r--chrome/browser/ui/gtk/bookmarks/bookmark_tree_model.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/ui/gtk/bookmarks/bookmark_tree_model.cc b/chrome/browser/ui/gtk/bookmarks/bookmark_tree_model.cc
index 89bc9bd..04a9d79 100644
--- a/chrome/browser/ui/gtk/bookmarks/bookmark_tree_model.cc
+++ b/chrome/browser/ui/gtk/bookmarks/bookmark_tree_model.cc
@@ -118,7 +118,8 @@ void AddToTreeStore(BookmarkModel* model, int64 selected_id,
const BookmarkNode* root_node = model->root_node();
for (int i = 0; i < root_node->child_count(); ++i) {
const BookmarkNode* child = root_node->GetChild(i);
- AddToTreeStoreAt(child, selected_id, store, selected_iter, NULL);
+ if (child->IsVisible())
+ AddToTreeStoreAt(child, selected_id, store, selected_iter, NULL);
}
}