Don't allow deleting an active VM (bz 518536)

This commit is contained in:
Cole Robinson 2009-08-31 10:19:49 -04:00
parent 29340e577e
commit 78317e7b3a

View File

@ -684,7 +684,8 @@ class vmmManager(gobject.GObject):
show_open = bool(vm)
show_details = bool(vm)
host_details = bool(vm or conn)
delete = bool((vm and vm.is_runable()) or conn)
delete = bool((vm and vm.is_runable()) or
(not vm and conn))
show_run = bool(vm and vm.is_runable())
is_paused = bool(vm and vm.is_paused())
if is_paused: