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

Guido Günther agx at sigxcpu.org
Wed May 20 17:27:28 UTC 2009


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"))




More information about the et-mgmt-tools mailing list