- should call dispose in finally block
This commit is contained in:
Heng Sin Low 2009-11-23 07:48:37 +00:00
parent f5c7c0fe09
commit 34067c61ae
1 changed files with 2 additions and 2 deletions

View File

@ -307,9 +307,9 @@ public class ProcessModalDialog extends Window implements EventListener
try {
Executions.activate(desktop);
try {
ProcessCtl.process(null, m_WindowNo, parameterPanel, m_pi, null);
dispose();
ProcessCtl.process(null, m_WindowNo, parameterPanel, m_pi, null);
} finally {
dispose();
if (m_ASyncProcess != null) {
m_ASyncProcess.unlockUI(m_pi);
} else {