From 1e8c7efa368da4ec933d9ca2356f405e3a0b7a6b Mon Sep 17 00:00:00 2001 From: armenrz Date: Wed, 28 Feb 2007 13:12:16 +0000 Subject: [PATCH] Patch #1665299 Cancel Opening Window --- client/src/org/compiere/apps/APanel.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/org/compiere/apps/APanel.java b/client/src/org/compiere/apps/APanel.java index 3e343b6a23..88468f77ec 100644 --- a/client/src/org/compiere/apps/APanel.java +++ b/client/src/org/compiere/apps/APanel.java @@ -75,6 +75,7 @@ public final class APanel extends CPanel private static CLogger log = CLogger.getCLogger(APanel.class); private AWindow m_window; + private boolean isCancel = false; //Goodwill /** * Dispose @@ -526,7 +527,9 @@ public final class APanel extends CPanel // initial user query for single workbench tab if (m_mWorkbench.getWindowCount() == 1) { + isCancel = false; //Goodwill query = initialQuery (query, gTab); + if (isCancel) return false; //Cancel opening window if (query != null && query.getRecordCount() <= 1) goSingleRow = true; } @@ -716,6 +719,7 @@ public final class APanel extends CPanel mTab.getAD_Table_ID(), mTab.getTableName(), where.toString(), findFields, 10); // no query below 10 query = find.getQuery(); + isCancel = (query == null);//Goodwill find.dispose(); find = null; }