From 0c4692ae5836fffdab4dcd0fc7220f825162746b Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 19 Jun 2012 13:02:38 -0400 Subject: [PATCH] appDisplay: Fix recursive directory NoDisplay testing We were accidentally testing NoDisplay on the wrong directory. https://bugzilla.gnome.org/show_bug.cgi?id=658176 --- js/ui/appDisplay.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index ad7b70dbb..b0ff291ba 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -208,8 +208,9 @@ const ViewByCategories = new Lang.Class({ appList.push(app); } } else if (nextType == GMenu.TreeItemType.DIRECTORY) { - if (!dir.get_is_nodisplay()) - this._loadCategory(iter.get_directory(), appList); + var itemDir = iter.get_directory(); + if (!itemDir.get_is_nodisplay()) + this._loadCategory(itemDir, appList); } } },