[PATCH] virt-manager: make return value check match self.get_config_keymap()

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

 



In the "Add hardware" wizard summary, the keymap field is set to "None"
instead of the empty string when "Same as host" option is used.
This patch was posted by Laurent Léonard to the Debian BTS.
Cheers,
 -- Guido

---
 src/virtManager/addhardware.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/virtManager/addhardware.py b/src/virtManager/addhardware.py
index 4648c88..de289d4 100644
--- a/src/virtManager/addhardware.py
+++ b/src/virtManager/addhardware.py
@@ -522,7 +522,7 @@ class vmmAddHardware(gobject.GObject):
                         self.window.get_widget("summary-graphics-password").set_text(_("Yes"))
                     else:
                         self.window.get_widget("summary-graphics-password").set_text(_("No"))
-                    if self.get_config_keymap() != "":
+                    if self.get_config_keymap() is not None:
                         self.window.get_widget("summary-graphics-keymap").set_text(str(self.get_config_keymap()))
                     else:
                         self.window.get_widget("summary-graphics-keymap").set_text(_("Same as host"))

_______________________________________________
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