Hi there,
Please help to review this little patch.
When you shutdown a guest in virt-manager, the Delete button status
don't change, you have to click some other guest, then click back to
this guest, and Delete button change to available.
Meanwhile, when you Run a stopped guest, the Delete button also don't
change to disable automatically...
So add the attached patch for this problem.
Thanks,
Henry
diff -Nrup virt-manager-0.4.0.mod.5/src/virtManager/manager.py virt-manager-0.4.0.mod.6/src/virtManager/manager.py
--- virt-manager-0.4.0.mod.5/src/virtManager/manager.py 2008-02-15 20:26:11.000000000 +0800
+++ virt-manager-0.4.0.mod.6/src/virtManager/manager.py 2008-03-04 21:42:28.931255000 +0800
@@ -719,10 +719,12 @@ class vmmManager(gobject.GObject):
def start_vm(self, ignore):
vm = self.current_vm()
vm.startup()
+ self.window.get_widget("vm-delete").set_sensitive(False)
def stop_vm(self, ignore):
vm = self.current_vm()
vm.shutdown()
+ self.window.get_widget("vm-delete").set_sensitive(True)
def pause_vm(self, ignore):
vm = self.current_vm()
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools