[gnome-shell] appDisplay: Fix recursive directory NoDisplay testing
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] appDisplay: Fix recursive directory NoDisplay testing
- Date: Thu, 21 Jun 2012 20:05:10 +0000 (UTC)
commit 0c4692ae5836fffdab4dcd0fc7220f825162746b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Jun 19 13:02:38 2012 -0400
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 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index ad7b70d..b0ff291 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);
}
}
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]