Remove the newAccountDialog on dispose() and not on cancel, thus fixing also the behavior on add. (Part of the commit : one "New account" dialog instance at a time).

cusax-fix
Yana Stamcheva 18 years ago
parent 980caea144
commit da2ccfaa2f

@ -340,8 +340,6 @@ else if (e.getErrorCode()
}
else if (sourceButton.equals(cancelButton))
{
newAccountDialog = null;
this.dispose();
}
}
@ -359,10 +357,20 @@ public static void showNewAccountDialog()
}
/**
* Reinitialize the newAccountDialog, when the window is closed.
* Remove the newAccountDialog, when the window is closed.
*/
protected void close(boolean isEscaped)
{
newAccountDialog = null;
}
/**
* Remove the newAccountDialog on dispose.
*/
public void dispose()
{
newAccountDialog = null;
super.dispose();
}
}

Loading…
Cancel
Save