IDEMPIERE-595 Swing Login Screen does not show role combo

This commit is contained in:
Hesham S. Ahmed 2013-01-26 05:30:55 +03:00
parent 7f1a780111
commit dc784cb325
1 changed files with 5 additions and 3 deletions

View File

@ -924,12 +924,11 @@ public final class ALogin extends CDialog
{ {
clientCombo.setSelectedIndex(0); clientCombo.setSelectedIndex(0);
clientCombo.setVisible(false); clientCombo.setVisible(false);
clientCombo.setVisible(false);
clientLabel.setVisible(false); clientLabel.setVisible(false);
} }
else else
{ {
clientCombo.setVisible(true); clientLabel.setVisible(true);
clientCombo.setVisible(true); clientCombo.setVisible(true);
} }
@ -973,6 +972,10 @@ public final class ALogin extends CDialog
} }
// //
KeyNamePair[] roles = m_login.getRoles(userTextField.getText(), client); KeyNamePair[] roles = m_login.getRoles(userTextField.getText(), client);
// Make role Combo visible
roleCombo.setVisible(true);
roleLabel.setVisible(true);
// delete existing rol/org items // delete existing rol/org items
if (roleCombo.getItemCount() > 0) if (roleCombo.getItemCount() > 0)
roleCombo.removeAllItems(); roleCombo.removeAllItems();
@ -1005,7 +1008,6 @@ public final class ALogin extends CDialog
{ {
roleCombo.setSelectedIndex(0); roleCombo.setSelectedIndex(0);
roleCombo.setVisible(false); roleCombo.setVisible(false);
roleCombo.setVisible(false);
roleLabel.setVisible(false); roleLabel.setVisible(false);
} }