[PATCH 05/10] choosecd: Emit cdrom-chosen signal after the dialog has been closed

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

 



This fixes the testChooseCDHotplug UI test: the cdrom-chosen signal
opens an alert and it does not get focus because it's being opened
before the dialog is closed. As a result, the tests timeout waiting for
the alert to get focus. Emitting the signal after the closure of the
dialog fixes this issue.

Signed-off-by: Povilas Kanapickas <povilas@xxxxxxxx>
---
 virtManager/choosecd.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virtManager/choosecd.py b/virtManager/choosecd.py
index e8eb891f..2de71315 100644
--- a/virtManager/choosecd.py
+++ b/virtManager/choosecd.py
@@ -116,8 +116,8 @@ class vmmChooseCD(vmmGObjectUI):
         except Exception as e:
             return self.err.val_err(_("Invalid Media Path"), e)
 
-        self.emit("cdrom-chosen", self.disk, path)
         self.close()
+        self.emit("cdrom-chosen", self.disk, path)
 
     def media_toggled(self, ignore1=None, ignore2=None):
         is_phys = bool(self.widget("physical-media").get_active())
-- 
2.17.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