From 747470b2f124eba610eab6dd0c0a9e6161773947 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 17 May 2013 16:21:13 +0800 Subject: [PATCH] IDEMPIERE-935 ZK: Memory leak for menu search panel. --- .../WEB-INF/src/org/adempiere/webui/panel/MenuSearchPanel.java | 2 +- .../src/org/adempiere/webui/panel/MenuTreeFilterPanel.java | 2 +- .../WEB-INF/src/org/adempiere/webui/panel/MenuTreePanel.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuSearchPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuSearchPanel.java index 6f95f9659e..0d6b64067d 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuSearchPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuSearchPanel.java @@ -47,7 +47,7 @@ public class MenuSearchPanel extends AbstractMenuPanel super.init(); pnlSearch.initialise(); - EventQueues.lookup(MenuTreeFilterPanel.MENU_TREE_FILTER_CHECKED_QUEUE, EventQueues.APPLICATION, true).subscribe(new EventListener() { + EventQueues.lookup(MenuTreeFilterPanel.MENU_TREE_FILTER_CHECKED_QUEUE, EventQueues.DESKTOP, true).subscribe(new EventListener() { public void onEvent(Event event) throws Exception { if (event.getName() == Events.ON_CHECK) { diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuTreeFilterPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuTreeFilterPanel.java index 43725f2e9f..34154ac5d0 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuTreeFilterPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuTreeFilterPanel.java @@ -82,7 +82,7 @@ public class MenuTreeFilterPanel extends Popup implements EventListener, searchPanel.refreshSearchList(); tree.invalidate(); */ - EventQueues.lookup(MENU_TREE_FILTER_CHECKED_QUEUE, EventQueues.APPLICATION, true).publish(new Event(Events.ON_CHECK, null, chk)); + EventQueues.lookup(MENU_TREE_FILTER_CHECKED_QUEUE, EventQueues.DESKTOP, true).publish(new Event(Events.ON_CHECK, null, chk)); } public static void toggleFlatView(Tree tree, final Checkbox chk) { diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuTreePanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuTreePanel.java index b45c30dec2..ec7ff60abd 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuTreePanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuTreePanel.java @@ -63,7 +63,7 @@ public class MenuTreePanel extends AbstractMenuPanel expandAll(); // Auto Expand Tree - nmicoud IDEMPIERE 195 - EventQueues.lookup(MenuTreeFilterPanel.MENU_TREE_FILTER_CHECKED_QUEUE, EventQueues.APPLICATION, true).subscribe(new EventListener() { + EventQueues.lookup(MenuTreeFilterPanel.MENU_TREE_FILTER_CHECKED_QUEUE, EventQueues.DESKTOP, true).subscribe(new EventListener() { public void onEvent(Event event) throws Exception { if (event.getName() == Events.ON_CHECK) {