From aca590117d4b609b6a5e253b50464b44d0466c85 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 13 Nov 2009 20:56:26 +0000 Subject: [PATCH] Fix reported problem for [2761420] - Advanced Search https://sourceforge.net/tracker/index.php?func=detail&aid=2761420&group_id=176962&atid=879332 --- .../src/de/schaeffer/compiere/tools/DocumentSearch.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/src/de/schaeffer/compiere/tools/DocumentSearch.java b/client/src/de/schaeffer/compiere/tools/DocumentSearch.java index 4882445585..d79de15c02 100644 --- a/client/src/de/schaeffer/compiere/tools/DocumentSearch.java +++ b/client/src/de/schaeffer/compiere/tools/DocumentSearch.java @@ -50,10 +50,11 @@ public class DocumentSearch extends AbstractDocumentSearch { protected boolean openWindow(int windowId, MQuery query) { final AWindow frame = new AWindow(); AEnv.addToWindowManager(frame); - final boolean ok = frame.initWindow(windowId, query); - frame.pack(); - AEnv.showCenterScreen(frame); - return ok; + if (frame.initWindow(windowId, query)) { + frame.pack(); + AEnv.showCenterScreen(frame); + } + return true; } }