From 4e8fe336585faf3f13675f004697ba1b47e1baa0 Mon Sep 17 00:00:00 2001 From: Alex Dedul Date: Wed, 18 Jul 2007 19:18:59 +0000 Subject: [PATCH] Add torrent in interactive_add_torrent() only if we succefully passed all checks. --- src/interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interface.py b/src/interface.py index 79ccdb5a8..2c3a9f18d 100644 --- a/src/interface.py +++ b/src/interface.py @@ -1112,8 +1112,8 @@ class DelugeGTK: dialogs.show_popup_warning(self.window, _("There is not enough free disk space to complete your download.") + "\n" + \ _("Space Needed:") + " " + nice_need + "\n" + \ _("Available Space:") + " " + nice_free) - - self.torrent_model_append(unique_id) + else: + self.torrent_model_append(unique_id) def launchpad(self, obj=None): common.open_url_in_browser('https://translations.launchpad.net/deluge/trunk/+pots/deluge')