summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()