From 00d01bc6520d9faa951afaa90a1bb5876a32315f Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Thu, 21 Dec 2006 23:20:26 +0000 Subject: [PATCH] * Fixed for bug [ 1620092 ] --- client/src/org/compiere/apps/ALogin.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/org/compiere/apps/ALogin.java b/client/src/org/compiere/apps/ALogin.java index d98cefb331..248bf800d8 100644 --- a/client/src/org/compiere/apps/ALogin.java +++ b/client/src/org/compiere/apps/ALogin.java @@ -362,6 +362,8 @@ public final class ALogin extends CDialog m_connectionOK = false; validateAppServer(); + //make sure connecting to new database + DB.closeTarget(); connectToDatabase(); // hostField.setDisplay(); @@ -416,7 +418,7 @@ public final class ALogin extends CDialog else if (e.getActionCommand().equals(ConfirmPanel.A_CANCEL)) appExit(); // - else if (e.getSource() == hostField) + else if (e.getSource() == hostField) validateConnection(); else if (e.getSource() == languageCombo) languageComboChanged();