From 2982ae4b8c27b528084e49f09c41baf4faa53b1a Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Fri, 15 Jun 2007 08:31:45 +0000 Subject: [PATCH] Update() now calls manager.apply_queue() Small fix in get_selected_torrent() to account for a TypeError --- src/interface.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/interface.py b/src/interface.py index 44fb8b8b0..2e8eada57 100644 --- a/src/interface.py +++ b/src/interface.py @@ -634,6 +634,9 @@ class DelugeGTK: ## Call via a timer to update the interface def update(self): + # We need to apply the queue changes + self.manager.apply_queue() + # Make sure that the interface still exists try: tab = self.wtree.get_widget("torrent_info").get_current_page() @@ -831,7 +834,7 @@ class DelugeGTK: if self.torrent_view.get_selection().count_selected_rows() == 1: self.torrent_selected = self.torrent_view.get_selection().get_selected_rows()[1][0] return self.torrent_model.get_value(self.torrent_model.get_iter(self.torrent_selected), 0) - except ValueError: + except TypeError, ValueError: return None # Return a list of ids of the selected torrents