Daniel Erez has posted comments on this change. Change subject: webadmin: import block storage domains - fix refresh ......................................................................
Patch Set 1: (3 inline comments) .................................................... File frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/ImportSanStorageModel.java Line 104: setItems(null); The null check would still be needed (InitializeItems method is called from other contexts as well). Line 138: if (getItems() == null) It might happen when called from other contexts, and I don't necessarily want to explicitly call 'setItems' beforehand since it invokes a 'ItemsChangedEvent'. Line 144: items.addAll((List<SanTargetModel>) getItems()); When 'newItems == null', 'setItems' should still be called in order to raise an 'ItemsChangedEvent' (to notify the view about the change). -- To view, visit http://gerrit.ovirt.org/6702 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I720d2bb6f2d3a7f7dd228c5337f908b6deab0bb0 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Ayal Baron <aba...@redhat.com> Gerrit-Reviewer: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Gilad Chaplik <gchap...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches