Commit 4522aa13 authored by Guido Günther's avatar Guido Günther

make check match return value of self.get_config_keymap()

In the "Add hardware" wizard summary, the keymap field is set to "None"
instead of "Same as host" when "Same as host" option is used.

Closes: #528447
Thanks: Laurent Léonard
parent 61b67c16
From: =?utf-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
Date: Wed, 20 May 2009 19:02:30 +0200
Subject: [PATCH] make check match return value of self.get_config_keymap()
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
In the "Add hardware" wizard summary, the keymap field is set to "None"
instead of "Same as host" when "Same as host" option is used.
Closes: #528447
Thanks: Laurent Léonard
---
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"))
--
0001-use-usr-share-gconf-for-schema-data.patch
0002-close-nc-connection-on-EOF.patch
0003-don-t-crop-vnc-display.patch
0004-make-check-match-return-value-of-self.get_config_key.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment