IDEMPIERE-935 ZK: Memory leak for menu search panel.
This commit is contained in:
parent
72abf35700
commit
747470b2f1
|
@ -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<Event>() {
|
||||
EventQueues.lookup(MenuTreeFilterPanel.MENU_TREE_FILTER_CHECKED_QUEUE, EventQueues.DESKTOP, true).subscribe(new EventListener<Event>() {
|
||||
public void onEvent(Event event) throws Exception {
|
||||
if (event.getName() == Events.ON_CHECK)
|
||||
{
|
||||
|
|
|
@ -82,7 +82,7 @@ public class MenuTreeFilterPanel extends Popup implements EventListener<Event>,
|
|||
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) {
|
||||
|
|
|
@ -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<Event>() {
|
||||
EventQueues.lookup(MenuTreeFilterPanel.MENU_TREE_FILTER_CHECKED_QUEUE, EventQueues.DESKTOP, true).subscribe(new EventListener<Event>() {
|
||||
public void onEvent(Event event) throws Exception {
|
||||
if (event.getName() == Events.ON_CHECK)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue