mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Don't allow deleting an active VM (bz 518536)
This commit is contained in:
parent
29340e577e
commit
78317e7b3a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user