summaryrefslogtreecommitdiff
path: root/virtinst/devicegraphics.py
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2014-01-28 18:44:40 -0500
committerCole Robinson <crobinso@redhat.com>2014-01-29 09:22:28 -0500
commit64b2d0c6b7804f3501bfd8b657346776a8849879 (patch)
tree3dbc73273acc891ac9932e6e755dcb607a72f2c8 /virtinst/devicegraphics.py
parentd0c734e2151e7a934a78500a66eb2a99cc2cf0b1 (diff)
downloadvirt-manager-64b2d0c6b7804f3501bfd8b657346776a8849879.tar.gz
Move shared graphics editing UI to gfxdetails.py
Fixes a couple UI bugs: https://bugzilla.redhat.com/show_bug.cgi?id=696217 https://bugzilla.redhat.com/show_bug.cgi?id=875403
Diffstat (limited to 'virtinst/devicegraphics.py')
-rw-r--r--virtinst/devicegraphics.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/virtinst/devicegraphics.py b/virtinst/devicegraphics.py
index 04a37593..63ce090f 100644
--- a/virtinst/devicegraphics.py
+++ b/virtinst/devicegraphics.py
@@ -149,7 +149,7 @@ class VirtualGraphics(VirtualDevice):
# old libvirt that didn't support 'autoport'
if self.type != "spice":
return None
- if (self.port == -1 or self.tlsPort == -1):
+ if (self.port == -1 and self.tlsPort == -1):
return True
return None
port = XMLProperty("./@port", is_int=True,