Hello, Currently upstream virt-manager has a bug where the pause and resume options disappear from a vm's right-click menu. This can be seen by pausing a machine in the manager, then resuming that machine; the 'pause' option will not be present in the right-click menu for the now active machine. The patch makes the pause button visible if the vm is in any state that isn't VIR_DOMAIN_PAUSED. Signed-off-by: Cole Robinson <crobinso@xxxxxxxxxx> Thanks, Cole -- Cole Robinson crobinso@xxxxxxxxxx
diff -r 216f03a53d2b src/virtManager/manager.py --- a/src/virtManager/manager.py Fri Jun 22 13:32:13 2007 -0400 +++ b/src/virtManager/manager.py Fri Jun 22 12:06:29 2007 -0400 @@ -463,6 +463,7 @@ class vmmManager(gobject.GObject): if vm.is_read_only() == True: self.vmmenu_items["run"].set_sensitive(False) self.vmmenu_items["pause"].set_sensitive(False) + self.vmmenu_items["pause"].show() self.vmmenu_items["resume"].hide() self.vmmenu_items["resume"].set_sensitive(False) self.vmmenu_items["shutdown"].set_sensitive(False) @@ -470,12 +471,14 @@ class vmmManager(gobject.GObject): if vm.status() == libvirt.VIR_DOMAIN_SHUTOFF: self.vmmenu_items["run"].set_sensitive(True) self.vmmenu_items["pause"].set_sensitive(False) + self.vmmenu_items["pause"].show() self.vmmenu_items["resume"].hide() self.vmmenu_items["resume"].set_sensitive(False) self.vmmenu_items["shutdown"].set_sensitive(False) elif vm.status() == libvirt.VIR_DOMAIN_RUNNING: self.vmmenu_items["run"].set_sensitive(False) self.vmmenu_items["pause"].set_sensitive(True) + self.vmmenu_items["pause"].show() self.vmmenu_items["resume"].hide() self.vmmenu_items["resume"].set_sensitive(False) self.vmmenu_items["shutdown"].set_sensitive(True)
_______________________________________________ et-mgmt-tools mailing list et-mgmt-tools@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/et-mgmt-tools