f42ba1daac
533d708d-fix-showing-vcpus-values.patch 533d7602-fix-changing-graphics-type.patch 533d7be7-clarify-iscsi-IQN-fields.patch - Dropped virtman-init-vm-processor-topology.patch in favor of upstream 533d708d-fix-showing-vcpus-values.patch - bnc#869024 - Build0198: Only option to create a virtual machine is "import existing disk image" virtman-add-s390x-arch-support.patch - bnc#871642 - virt-manager wants to install libvirt-daemon-xen even when it is installed xen.spec - Xen: Virt-install won't reboot VM after install of SLE HVM guest because of libxl exception. virtinst-keep-cdrom-media-attached.patch - Fate#315125: add NOCOW flag virtinst-vol-default-nocow.patch - Upstream bug fixes 53375bad-raise-value-error-when-no-ipaddr-set.patch 53388de2-show-port-number-for-active-autoport-VM.patch 53397ae0-check-ip-address-format.patch 53399b45-hook-into-domain-balloon-event.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=162
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
Subject: gfxdetails: Show port number for active autoport VM (bz 1081614)
|
|
From: Cole Robinson crobinso@redhat.com Sun Mar 30 17:34:26 2014 -0400
|
|
Date: Sun Mar 30 17:34:26 2014 -0400:
|
|
Git: 7f802e287c21a6395a0e9f5435c1eab78b2ce6b5
|
|
|
|
|
|
diff --git a/virtManager/gfxdetails.py b/virtManager/gfxdetails.py
|
|
index 0141f7e..d6865a8 100644
|
|
--- a/virtManager/gfxdetails.py
|
|
+++ b/virtManager/gfxdetails.py
|
|
@@ -154,15 +154,20 @@ class vmmGraphicsDetails(vmmGObjectUI):
|
|
auto = self.widget(basename + "-auto")
|
|
widget = self.widget(basename)
|
|
auto.set_inconsistent(False)
|
|
+ label = auto.get_label().split(" (")[0]
|
|
|
|
if val == -1 or gfx.autoport:
|
|
auto.set_active(True)
|
|
+ if val and val != -1:
|
|
+ label += " (%s %s)" % (_("Port"), val)
|
|
elif val is None:
|
|
auto.set_inconsistent(True)
|
|
else:
|
|
auto.set_active(False)
|
|
widget.set_value(val)
|
|
|
|
+ auto.set_label(label)
|
|
+
|
|
gtype = gfx.type
|
|
is_vnc = (gtype == "vnc")
|
|
is_sdl = (gtype == "sdl")
|