[PATCH] virt-manager: populate_device_list on reset_state()

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

 



Hi,
otherwise the device list is empty when we open the dialog. Also select
the first entry.
Cheers,
 -- Guido
# HG changeset patch
# User "Guido Günther <agx@xxxxxxxxxxx>"
# Date 1222957947 -7200
# Node ID 071a45834084fed40d0d4b5cbc5113a3d98f9378
# Parent  a510b28cd7f71f5c5871089f60369f327c83b6d3
call populate_opt_media on reset_state

this way the physical media combo box isn't empty when we show the dialog for
the first time

diff -r a510b28cd7f7 -r 071a45834084 src/virtManager/choosecd.py
--- a/src/virtManager/choosecd.py	Thu Oct 02 16:30:55 2008 +0200
+++ b/src/virtManager/choosecd.py	Thu Oct 02 16:32:27 2008 +0200
@@ -89,6 +89,8 @@
         else:
             self.window.get_widget("physical-media").set_sensitive(True)
             self.window.get_widget("iso-file-chooser").set_sensitive(True)
+            self.populate_opt_media()
+            self.window.get_widget("cd-path").set_active(0)
 
     def ok(self,ignore1=None, ignore2=None):
         if self.window.get_widget("iso-image").get_active():
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux