noam slomianko has posted comments on this change.

Change subject: webadmin: Cleanup of AdElementListModel constructor
......................................................................


Patch Set 4: (1 inline comment)

....................................................
File 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/users/AdElementListModel.java
Line 223:         if (selectedRole != null) {
Line 224:             getRole().setSelectedItem(selectedRole);
Line 225:         } else if (roles.size() > 0){
Line 226:             //if engine user does not exist, pick the first on the 
list
Line 227:             getRole().setSelectedItem(roles.get(0));
It used to select the top of the list if engine user doesn't exist, now I 
select the top of the list after the sort.

Same effect better code
Line 228:         }
Line 229:     }
Line 230: 
Line 231:     @Override


--
To view, visit http://gerrit.ovirt.org/12667
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Iacc5878f32f5b5395dd5a87a0614b4c3a21bf88d
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Noam Slomianko <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Doron Fediuck <[email protected]>
Gerrit-Reviewer: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Noam Slomianko <[email protected]>
Gerrit-Reviewer: noam slomianko <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to