SPARK-1758 - Do not show UNFILED group if it's empty (#247)

This commit is contained in:
Michael Klein
2016-10-31 00:27:41 -04:00
committed by wroot
parent 8c1e41b718
commit 0983fa37b5

View File

@ -2572,8 +2572,9 @@ SwingUtilities.invokeLater( () -> loadContactList() );
if (unfiledGroup == null) {
// Add Unfiled Group
if(EventQueue.isDispatchThread()) {
unfiledGroup = UIComponentRegistry.createContactGroup(Res.getString("unfiled"));
addContactGroup(unfiledGroup);
unfiledGroup = UIComponentRegistry.createContactGroup(Res.getString("unfiled"));
// Only show the "Unfiled" group if it is not empty
if (unfiledGroup.hasAvailableContacts()) addContactGroup(unfiledGroup);
}
else {
try {