mirror of
https://github.com/virt-manager/virt-manager.git
synced 2026-08-10 04:58:08 -05:00
Handle the warning messages for disk device and non-disk device differently
add a remove-non-disk function and move the yes/no confirmation handling there Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
@@ -112,7 +112,7 @@ class vmmDeleteDialog(vmmGObjectUI):
|
||||
self.widget("delete-cancel").grab_focus()
|
||||
|
||||
# Show warning message if VM is running
|
||||
vm_active = self.vm.is_active()
|
||||
vm_active = self.vm.is_active() and not self.disk
|
||||
uiutil.set_grid_row_visible(
|
||||
self.widget("delete-warn-running-vm-box"), vm_active)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user