From 1acefd9871eed2e9e467b235ea6ea1821e0e6307 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Sun, 7 Jan 2007 07:37:01 +0000 Subject: [PATCH] * Fixed for bug [1619933] and [1619933], now it is possible to run adempiere client with only a single connection to the application server. --- client/src/org/compiere/apps/ALogin.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/org/compiere/apps/ALogin.java b/client/src/org/compiere/apps/ALogin.java index 248bf800d8..95c628c0d9 100644 --- a/client/src/org/compiere/apps/ALogin.java +++ b/client/src/org/compiere/apps/ALogin.java @@ -550,8 +550,10 @@ public final class ALogin extends CDialog m_pwd = new String (passwordField.getPassword()); // Establish connection - connectToDatabase(); - if (!DB.isConnected()) + if (!DB.isConnected(false)) + validateConnection(); + + if (!DB.isConnected(false)) { statusBar.setStatusLine(txt_NoDatabase, true); hostField.setBackground(AdempierePLAF.getFieldBackground_Error());