CA-210732: XenCenter VM properties GPU always shows "None" (#983)
CA-210732: XenCenter VM properties GPU always shows "None" (#983)

* CA-210732: XenCenter VM properties GPU always shows "None"

The error occurs when there is a gpu group with only one vgpu type: When setting the selected item in the vGPU combobox, XenCenter tries to select the group header instead of the vGPU type; because the group header is not selectable, we then default to "None".
With this fix, we ensure that two items are not equal if one is a group header and the other is a subitem.

Signed-off-by: Mihaela Stoica <be95049f8e30d921fc7e2579c00c48bd84c40606@citrix.com>

* CA-210732: XenCenter VM properties GPU always shows "None"

Changes following code review: Added the reverse case in the Equals function

Signed-off-by: Mihaela Stoica <be95049f8e30d921fc7e2579c00c48bd84c40606@citrix.com>

* CA-210732: XenCenter VM properties GPU always shows "None"

Signed-off-by: Mihaela Stoica <be95049f8e30d921fc7e2579c00c48bd84c40606@citrix.com>

MihaelaStoica/xenadmin,jijiang/xenadmin,MihaelaStoica/xenadmin,huizh/xenadmin,letsboogey/xenadmin,jijiang/xenadmin,GaborApatiNagy/xenadmin,stephen-turner/xenadmin,MihaelaStoica/xenadmin,geosharath/xenadmin,geosharath/xenadmin,GaborApatiNagy/xenadmin,MihaelaStoica/xenadmin,letsboogey/xenadmin,stephen-turner/xenadmin,ushamandya/xenadmin,stephen-turner/xenadmin,kc284/xenadmin,jijiang/xenadmin,huizh/xenadmin,Frezzle/xenadmin,minli1/xenadmin,stephen-turner/xenadmin,Frezzle/xenadmin,geosharath/xenadmin,huizh/xenadmin,jijiang/xenadmin,geosharath/xenadmin,letsboogey/xenadmin,ushamandya/xenadmin,ushamandya/xenadmin,Frezzle/xenadmin,ushamandya/xenadmin,ushamandya/xenadmin,MihaelaStoica/xenadmin,kc284/xenadmin,Frezzle/xenadmin,geosharath/xenadmin,huizh/xenadmin,kc284/xenadmin,ushamandya/xenadmin,kc284/xenadmin,huizh/xenadmin,stephen-turner/xenadmin,minli1/xenadmin,geosharath/xenadmin,minli1/xenadmin,xenserver/xenadmin,GaborApatiNagy/xenadmin,jijiang/xenadmin,xenserver/xenadmin,huizh/xenadmin,jijiang/xenadmin,letsboogey/xenadmin,minli1/xenadmin,letsboogey/xenadmin,stephen-turner/xenadmin,letsboogey/xenadmin,MihaelaStoica/xenadmin,GaborApatiNagy/xenadmin,GaborApatiNagy/xenadmin,minli1/xenadmin,kc284/xenadmin,minli1/xenadmin,GaborApatiNagy/xenadmin,Frezzle/xenadmin,Frezzle/xenadmin,xenserver/xenadmin