From 3118c2912f92454ef91f20baf61c7d7ee0ab4404 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Tue, 19 Jun 2007 03:13:29 +0000 Subject: [PATCH] More pause/resume fix ups --- src/core.py | 2 ++ src/interface.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core.py b/src/core.py index b75db8953..953d8d299 100644 --- a/src/core.py +++ b/src/core.py @@ -472,6 +472,8 @@ class Manager: deluge_core.resume(unique_ID) else: print "Not enough free space to resume this torrent!" + else: #We're using compact allocation so lets just resume + deluge_core.resume(unique_ID) elif (not self.get_core_torrent_state(unique_ID, efficient)['is_paused']) and \ ( (index >= self.get_pref('max_active_torrents') and \ diff --git a/src/interface.py b/src/interface.py index d82ed6641..7ee3bb0ee 100644 --- a/src/interface.py +++ b/src/interface.py @@ -773,7 +773,7 @@ class DelugeGTK: if not self.torrent_model.iter_is_valid(itr): itr = None try: - if self.manager.is_user_paused(self.get_selected_torrent()): + if self.manager.get_torrent_state(self.get_selected_torrent())["is_paused"]: self.wtree.get_widget("toolbutton_pause").set_stock_id(gtk.STOCK_MEDIA_PLAY) self.wtree.get_widget("toolbutton_pause").set_label(_("Resume")) else: