virt-manager/virt-manager-0.8.0-no-delete-active.patch
Cole Robinson 3957d80fc8 Fix disk XML mangling via connect/eject cdrom (bz 516116) Fix delete button
sensitivity (bz 518536) Fix populating text box from storage browser in
    'New VM' (bz 517263) Fix a traceback in an 'Add Hardware' error path
    (bz 517286)
2009-09-14 15:05:51 +00:00

21 lines
824 B
Diff

# HG changeset patch
# User Cole Robinson <crobinso@redhat.com>
# Date 1251728389 14400
# Node ID b70858b9f8c6f9fea21f6e66a10e7b9498f11e5e
# Parent 0bdea2b6c30e3b9ac7ca7b35f957598e66fd8c36
Don't allow deleting an active VM (bz 518536)
diff -r 0bdea2b6c30e -r b70858b9f8c6 src/virtManager/manager.py
--- a/src/virtManager/manager.py Mon Aug 31 10:07:06 2009 -0400
+++ b/src/virtManager/manager.py Mon Aug 31 10:19:49 2009 -0400
@@ -684,7 +684,8 @@
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: