diff options
author | Chris Lumens <clumens@redhat.com> | 2007-10-02 19:29:15 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2007-10-02 19:29:15 +0000 |
commit | 8dd41d64a1a1f37fb6d8f6133866988ac777ab87 (patch) | |
tree | 80e251e3a27b00f6bd28b0d443c45af223a1c674 /iw | |
parent | d8ea9a83fba9b6b7e755a18684ed6c7fc49035af (diff) | |
download | anaconda-8dd41d64a1a1f37fb6d8f6133866988ac777ab87.tar.gz anaconda-8dd41d64a1a1f37fb6d8f6133866988ac777ab87.tar.xz anaconda-8dd41d64a1a1f37fb6d8f6133866988ac777ab87.zip |
If the user selected the same language as the one currently displayed, don't
reload the UI (#290781).
Diffstat (limited to 'iw')
-rw-r--r-- | iw/language_gui.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/iw/language_gui.py b/iw/language_gui.py index 5afa2b674..40910a145 100644 --- a/iw/language_gui.py +++ b/iw/language_gui.py @@ -25,13 +25,16 @@ class LanguageWindow (InstallWindow): def __init__ (self, ics): InstallWindow.__init__ (self, ics) - + def getNext (self): (model, iter) = self.listView.get_selection().get_selected() assert iter, "No selection found on language list!" choice = self.listStore.get_value(iter, 1) self.lang = self.instLang.getNickByName(choice) + if self.lang in self.instLang.getCurrentLangSearchList(): + return None + self.instLang.setRuntimeLanguage(self.lang) self.instLang.setDefault(self.lang) self.ics.getICW().setLanguage() |