Patch #1665299 Cancel Opening Window

This commit is contained in:
armenrz 2007-02-28 13:12:16 +00:00
parent 535704cd95
commit 1e8c7efa36
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}