ontv r474 - trunk/ontv
- From: johans svn gnome org
- To: svn-commits-list gnome org
- Subject: ontv r474 - trunk/ontv
- Date: Mon, 24 Nov 2008 14:26:10 +0000 (UTC)
Author: johans
Date: Mon Nov 24 14:26:10 2008
New Revision: 474
URL: http://svn.gnome.org/viewvc/ontv?rev=474&view=rev
Log:
Fix exception in assistant if no grabbers are found.
Modified:
trunk/ontv/assistant.py
Modified: trunk/ontv/assistant.py
==============================================================================
--- trunk/ontv/assistant.py (original)
+++ trunk/ontv/assistant.py Mon Nov 24 14:26:10 2008
@@ -211,6 +211,8 @@
def __get_grabber_from_combobox(self):
country_combobox_model = self.country_combobox.get_model()
country_combobox_active = self.country_combobox.get_active()
+ if country_combobox_active == -1:
+ return ""
selected_country = country_combobox_model[country_combobox_active][0]
grabber = GRABBERS[selected_country]
return grabber
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]