[vcs-log] user-filter: treat empty user name as no filter.

This commit is contained in:
Kirill Likhodedov
2014-01-08 16:00:52 +04:00
parent cda9ec5baf
commit 28b659188e
@@ -167,7 +167,12 @@ class UserFilterPopupComponent extends FilterPopupComponent {
if (event.isOk()) {
final String userText = popupBuilder.getText().trim();
Collection<String> selectedUsers = ContainerUtil.toCollection(StringUtil.tokenize(userText, new String(USERS_SEPARATORS)));
apply(selectedUsers, displayableText(selectedUsers), tooltip(selectedUsers));
if (selectedUsers.isEmpty()) {
apply(null, ALL, ALL);
}
else {
apply(selectedUsers, displayableText(selectedUsers), tooltip(selectedUsers));
}
}
}
});