* unregister bug, show ProcessModalDialog after it have been dispose

This commit is contained in:
Heng Sin Low 2007-01-30 07:58:03 +00:00
parent 16b63ce410
commit b01af39951
2 changed files with 8 additions and 1 deletions

View File

@ -2021,7 +2021,8 @@ public final class APanel extends CPanel
ProcessModalDialog dialog = new ProcessModalDialog(m_ctx, Env.getWindow(m_curWindowNo), Env.getHeader(m_ctx, m_curWindowNo),
this, m_curWindowNo, vButton.getProcess_ID(), table_ID,
record_ID, startWOasking);
AEnv.showCenterWindow(Env.getWindow(m_curWindowNo), dialog);
if (dialog.isValid())
AEnv.showCenterWindow(Env.getWindow(m_curWindowNo), dialog);
} // actionButton

View File

@ -87,6 +87,7 @@ public class ProcessModalDialog extends CDialog
private String m_Name = null;
private StringBuffer m_messageText = new StringBuffer();
private String m_ShowHelp = null; // Determine if a Help Process Window is shown
private boolean m_valid = true;
/** Logger */
private static CLogger log = CLogger.getCLogger(ProcessDialog.class);
@ -176,9 +177,14 @@ public class ProcessModalDialog extends CDialog
*/
public void dispose()
{
m_valid = false;
super.dispose();
} // dispose
public boolean isValid()
{
return m_valid;
}
/**
* Dynamic Init