[ontv] Fixed mistakes in previous commit



commit 577d4658fba245e976738c5b867a2f20cc757ef0
Author: Olof Kindgren <olki src gnome org>
Date:   Tue Oct 26 20:56:06 2010 +0200

    Fixed mistakes in previous commit

 ontv/dialogs.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/ontv/dialogs.py b/ontv/dialogs.py
index 0227c82..20c2bf2 100644
--- a/ontv/dialogs.py
+++ b/ontv/dialogs.py
@@ -384,7 +384,7 @@ class PreferencesDialog:
                     self.button_move_channel_up.set_sensitive(False)
                 else:
                     self.button_move_channel_up.set_sensitive(True)
-                if row == len(self.selected_channels_model)-:
+                if row == len(self.selected_channels_model)-1:
                     self.button_move_channel_down.set_sensitive(False)
                 else:
                     self.button_move_channel_down.set_sensitive(True)
@@ -802,7 +802,7 @@ class SearchDialog:
             self.add_reminder_button.set_sensitive(False)
 
     def on_search_treeview_row_activated(self, treeview, path, column):
-        program = gui.get_selected_value(treeview)
+        program = gui.get_selected_value(treeview, COL_PROG)
         pd = ProgramDialog(program)
         pd.show()
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]