From 79c6fa470df3b35732e6a79d1b06729dfb0d061d Mon Sep 17 00:00:00 2001 From: Zach Tibbitts Date: Thu, 8 Mar 2007 23:14:58 +0000 Subject: [PATCH] bugfix --- src/deluge.py | 2 +- src/delugegtk.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/deluge.py b/src/deluge.py index f7d0a17c9..2450f91da 100644 --- a/src/deluge.py +++ b/src/deluge.py @@ -711,7 +711,7 @@ class Manager: if no_space: self.apply_queue() - return ret, no_space + return (ret, no_space) def get_queue_index(self, unique_ID): return self.state.queue.index(unique_ID) diff --git a/src/delugegtk.py b/src/delugegtk.py index 8645f6880..28b7d0081 100644 --- a/src/delugegtk.py +++ b/src/delugegtk.py @@ -877,8 +877,9 @@ class DelugeGTK: (unique_id, paused) = self.manager.add_torrent(torrent, path, False) # nice_need = dcommon.fsize(err.needed_space) # nice_free = dcommon.fsize(err.free_space) - dgtk.show_popup_warning(self.window, _("There is not enough free space to complete this download.") + \ - _("Please ensure you have enough space available, then unpause the download.")) + if paused: + dgtk.show_popup_warning(self.window, _("There is not enough free space to complete this download.") + \ + _("Please ensure you have enough space available, then unpause the download.")) if append: self.torrent_model.append(self.get_list_from_unique_id(unique_id))