d63d020de9
1240-cdrom-driver-name.patch 1242-delete-active-vm.patch 1245-storage-browser-selection.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=7
22 lines
893 B
Diff
22 lines
893 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)
|
|
|
|
Index: virt-manager-0.8.0/src/virtManager/manager.py
|
|
===================================================================
|
|
--- virt-manager-0.8.0.orig/src/virtManager/manager.py
|
|
+++ virt-manager-0.8.0/src/virtManager/manager.py
|
|
@@ -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:
|