1
0
mirror of https://src.fedoraproject.org/rpms/virt-manager.git synced 2025-07-16 01:03:36 +00:00
Files
virt-manager/0001-gfxdetails-Show-port-number-for-active-autoport-VM-b.patch
Cole Robinson f1443be186 Fix F21 URL installs (bz #1147720)
Only add 2 usbredir devices by default (bz #1135488)
2014-10-29 14:05:34 -04:00

36 lines
1.2 KiB
Diff

From: Cole Robinson <crobinso@redhat.com>
Date: Sun, 30 Mar 2014 17:34:26 -0400
Subject: [PATCH virt-manager] gfxdetails: Show port number for active autoport
VM (bz 1081614)
(cherry picked from commit 7f802e287c21a6395a0e9f5435c1eab78b2ce6b5)
---
virtManager/gfxdetails.py | 5 +++++
1 file changed, 5 insertions(+)
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")