appDisplay: Fix recursive directory NoDisplay testing

We were accidentally testing NoDisplay on the wrong directory.

https://bugzilla.gnome.org/show_bug.cgi?id=658176
This commit is contained in:
Jasper St. Pierre 2012-06-19 13:02:38 -04:00
parent df56ff4f09
commit 0c4692ae58

View File

@ -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);
}
}
},