From cd7b94b87664f28ec22a2470efe9039cd34268c9 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Wed, 9 May 2007 00:50:14 +0000 Subject: [PATCH] [ 1713668 ] "View" menu elements dont open result window - Previous patch by red1 is bad, dispose is needed if the info window is open from lookup field. --- client/src/org/compiere/apps/search/Info.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/src/org/compiere/apps/search/Info.java b/client/src/org/compiere/apps/search/Info.java index a23d4d01e6..80d821a791 100644 --- a/client/src/org/compiere/apps/search/Info.java +++ b/client/src/org/compiere/apps/search/Info.java @@ -919,10 +919,13 @@ public abstract class Info extends CDialog // "ClickCount=" + e.getClickCount() + ", Right=" + SwingUtilities.isRightMouseButton(e) // + ", r=" + m_table.getSelectedRow() + ", c=" + m_table.getSelectedColumn()); - // Double click with selected row => exit + // Double click with selected row => exit/zoom if (e.getClickCount() > 1 && p_table.getSelectedRow() != -1) { - zoom(); // replacing dispose(true) so that it wouldnt just exit; // double_click same as OK + if (p_WindowNo == 0) + zoom(); + else + dispose(true); } // Right Click => start Calculator else if (SwingUtilities.isRightMouseButton(e))