[virt-manager PATCH] details: allow to remove video device if it's not the last one

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1659354

Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---

Pushed under trivial rule.

 virtManager/details.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/virtManager/details.py b/virtManager/details.py
index 7d795004..920eea94 100644
--- a/virtManager/details.py
+++ b/virtManager/details.py
@@ -2975,9 +2975,11 @@ class vmmDetails(vmmGObjectUI):
         else:
             self.widget("video-3d").set_active(vid.accel3d)
 
-        if self.vm.xmlobj.devices.graphics:
+        if (self.vm.xmlobj.devices.graphics and
+            len(self.vm.xmlobj.devices.video) <= 1):
             self._disable_device_remove(
-                _("Cannot remove device while Graphics/Display is attached."))
+                _("Cannot remove last video device while "
+                  "Graphics/Display is attached."))
 
     def refresh_watchdog_page(self, watch):
         model = watch.model
-- 
2.20.1

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux