summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2011-03-30 15:49:43 +0100
committerPhilip Withnall <philip@tecnocode.co.uk>2011-03-30 20:31:39 +0100
commitfaa342e0cd52171a34be8d8f68e9b3bfcc902794 (patch)
tree846739df5f516ee642cef471893a4d623b5f3773
parentf7cc61859bb44a0826e7cb57143a34aa57ed7197 (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.py5
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()