Merge "Show preferred email as empty if user has no preferred email address"

This commit is contained in:
Shawn Pearce
2013-05-28 23:14:36 +00:00
committed by Gerrit Code Review

View File

@@ -423,6 +423,14 @@ class ContactPanelShort extends Composite {
}
}
if (emailPick.getItemCount() > 0) {
if (currentEmail == null) {
int index = emailListIndexOf("");
if (index != -1) {
emailPick.removeItem(index);
}
emailPick.insertItem("", 0);
emailPick.setSelectedIndex(0);
}
emailPick.setVisible(true);
emailPick.setEnabled(true);
if (canRegisterNewEmail()) {