details: xen keyboard can't be removed either

This commit is contained in:
Cole Robinson 2014-06-02 18:54:28 -04:00
parent aefd4c4824
commit 03670c38dc
1 changed files with 1 additions and 1 deletions

View File

@ -2777,7 +2777,7 @@ class vmmDetails(vmmGObjectUI):
# Can't remove primary Xen or PS/2 mice
if ((inp.type == "mouse" and inp.bus in ("xen", "ps2")) or
(inp.type == "keyboard" and inp.bus == "ps2")):
(inp.type == "keyboard" and inp.bus in ("xen", "ps2"))):
self.widget("config-remove").set_sensitive(False)
else:
self.widget("config-remove").set_sensitive(True)