diff options
author | Cole Robinson <crobinso@redhat.com> | 2014-03-22 18:25:53 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2014-03-22 18:29:08 -0400 |
commit | b49f647e0cb1784577485106e7c39b84c1321c49 (patch) | |
tree | f3496e6501e520d087f03db16d19459b9c84e49d /virtManager | |
parent | 565ef4f3ef674089a7845bd24d6ec2b1375315d9 (diff) | |
download | virt-manager-b49f647e0cb1784577485106e7c39b84c1321c49.tar.gz |
details: Fix unsetting autoport values
Diffstat (limited to 'virtManager')
-rw-r--r-- | virtManager/gfxdetails.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/virtManager/gfxdetails.py b/virtManager/gfxdetails.py index 18b8d402..0141f7ed 100644 --- a/virtManager/gfxdetails.py +++ b/virtManager/gfxdetails.py @@ -153,6 +153,8 @@ class vmmGraphicsDetails(vmmGObjectUI): def set_port(basename, val): auto = self.widget(basename + "-auto") widget = self.widget(basename) + auto.set_inconsistent(False) + if val == -1 or gfx.autoport: auto.set_active(True) elif val is None: @@ -227,10 +229,12 @@ class vmmGraphicsDetails(vmmGObjectUI): self.emit("changed-type") def _change_port_auto(self, ignore): + self.widget("graphics-port-auto").set_inconsistent(False) self._change_ports() self.emit("changed-port") def _change_tlsport_auto(self, ignore): + self.widget("graphics-tlsport-auto").set_inconsistent(False) self._change_ports() self.emit("changed-tlsport") |