From dc784cb325f4a1174921fa56ed559d20fb5fe083 Mon Sep 17 00:00:00 2001 From: "Hesham S. Ahmed" Date: Sat, 26 Jan 2013 05:30:55 +0300 Subject: [PATCH] IDEMPIERE-595 Swing Login Screen does not show role combo --- org.adempiere.ui.swing/src/org/compiere/apps/ALogin.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/ALogin.java b/org.adempiere.ui.swing/src/org/compiere/apps/ALogin.java index f25e531c9e..73c60d8a0e 100644 --- a/org.adempiere.ui.swing/src/org/compiere/apps/ALogin.java +++ b/org.adempiere.ui.swing/src/org/compiere/apps/ALogin.java @@ -924,12 +924,11 @@ public final class ALogin extends CDialog { clientCombo.setSelectedIndex(0); clientCombo.setVisible(false); - clientCombo.setVisible(false); clientLabel.setVisible(false); } else { - clientCombo.setVisible(true); + clientLabel.setVisible(true); clientCombo.setVisible(true); } @@ -973,6 +972,10 @@ public final class ALogin extends CDialog } // KeyNamePair[] roles = m_login.getRoles(userTextField.getText(), client); + // Make role Combo visible + roleCombo.setVisible(true); + roleLabel.setVisible(true); + // delete existing rol/org items if (roleCombo.getItemCount() > 0) roleCombo.removeAllItems(); @@ -1005,7 +1008,6 @@ public final class ALogin extends CDialog { roleCombo.setSelectedIndex(0); roleCombo.setVisible(false); - roleCombo.setVisible(false); roleLabel.setVisible(false); }