diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2011-03-30 15:49:43 +0100 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2011-03-30 20:31:39 +0100 |
commit | faa342e0cd52171a34be8d8f68e9b3bfcc902794 (patch) | |
tree | 846739df5f516ee642cef471893a4d623b5f3773 | |
parent | f7cc61859bb44a0826e7cb57143a34aa57ed7197 (diff) |
Bug 646231 — Subtitle downloader plugin broken on 2.91.93
Fix another API break in pygobject/GTK+'s GIR. This allows the Subtitle
Downloader dialogue to actually open successfully.
Closes: bgo#646231
-rw-r--r-- | src/plugins/opensubtitles/opensubtitles.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py index 791cc67a..a5b5c501 100644 --- a/src/plugins/opensubtitles/opensubtitles.py +++ b/src/plugins/opensubtitles/opensubtitles.py @@ -364,8 +364,9 @@ class OpenSubtitles(gobject.GObject, Peas.Activatable): for lang in LANGUAGES_STR: it = languages.append(lang) if LANGUAGES[lang[1]] == self.model.lang: - parentit = sorted_languages.convert_child_iter_to_iter (it) - combobox.set_active_iter(parentit) + (success, parentit) = sorted_languages.convert_child_iter_to_iter (it) + if success: + combobox.set_active_iter (parentit) # Set up the results treeview renderer = Gtk.CellRendererText() |