* minor wan profile enhancement

This commit is contained in:
Heng Sin Low 2007-01-12 08:53:12 +00:00
parent cd1efeb071
commit 026f99e87a
1 changed files with 11 additions and 1 deletions

View File

@ -346,12 +346,22 @@ public final class ALogin extends CDialog
private void validateAppServer() {
m_cc.testAppsServer();
if (m_cc.getAppsServerException() != null)
{
if (m_cc.isServerObjects())
{
m_cc.getAppsServerException().printStackTrace();
JOptionPane.showMessageDialog(null,
m_cc.getAppsServerException().getLocalizedMessage(),
"Error", JOptionPane.ERROR_MESSAGE);
}
}
}
private void connectToDatabase() {
//Check connection
DB.setDBTarget(m_cc);
if (DB.isRemoteObjects() == false)
if (m_cc.isServerObjects() == false)
DB.connect();
}