From c0115ddd83d82f2f64f2992c7a461852295228fd Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Sat, 31 Jan 2009 16:07:05 +0000 Subject: [PATCH] BF [ 1834399 ] VLookup: pressing enter twice has a annoying behaviour https://sourceforge.net/tracker/?func=detail&atid=879332&aid=1834399&group_id=176962 --- client/src/org/compiere/grid/ed/VLookup.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/src/org/compiere/grid/ed/VLookup.java b/client/src/org/compiere/grid/ed/VLookup.java index 05ae2ae056..c10d145c58 100644 --- a/client/src/org/compiere/grid/ed/VLookup.java +++ b/client/src/org/compiere/grid/ed/VLookup.java @@ -92,6 +92,7 @@ import org.eevolution.model.MPPProductBOMLine; * @author Teo Sarca, SC ARHIPAC SERVICE SRL *
  • BF [ 1740835 ] NPE when closing a window *
  • BF [ 1817768 ] Isolate hardcoded table direct columns + *
  • BF [ 1834399 ] VLookup: pressing enter twice has a annoying behaviour *
  • BF [ 1979213 ] VLookup.getDirectAccessSQL issue * @author Michael Judd (MultiSelect) */ @@ -966,6 +967,12 @@ public class VLookup extends JComponent private void actionText() { String text = m_text.getText(); + // Nothing entered, just pressing enter again => ignore - teo_sarca BF [ 1834399 ] + if (text != null && text.equals(m_lastDisplay)) + { + log.finest("Nothing entered [SKIP]"); + return; + } // Nothing entered if (text == null || text.length() == 0 || text.equals("%")) {