[master][PATCH] Return switching options with the same order as shown (#1011130)
Vratislav Podzimek
vpodzime at redhat.com
Tue Sep 24 20:12:52 UTC 2013
The switching options dialog lists all available switching options ordered
alphabetically. When returning checked options it should keep the same ordering
not to confuse users.
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
pyanaconda/ui/gui/spokes/keyboard.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/ui/gui/spokes/keyboard.py b/pyanaconda/ui/gui/spokes/keyboard.py
index d35eb2f..a943d1f 100644
--- a/pyanaconda/ui/gui/spokes/keyboard.py
+++ b/pyanaconda/ui/gui/spokes/keyboard.py
@@ -238,7 +238,7 @@ class ConfigureSwitchingDialog(GUIObject):
def checked_options(self):
"""Property returning all checked options from the list"""
- ret = [row[0] for row in self._switchingOptsStore if row[1] and row[0]]
+ ret = [row[0] for row in self._switchingOptsSort if row[1] and row[0]]
return ret
def on_use_option_toggled(self, renderer, path, *args):
--
1.7.11.7
More information about the anaconda-patches
mailing list