From f9e5157d6eac17281a39380cb0588e9bd4a2dd67 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Tue, 6 Nov 2007 21:30:12 +0000 Subject: [PATCH] ui warning of out of hd space --- src/core.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core.py b/src/core.py index bdac60532..cea7cc212 100644 --- a/src/core.py +++ b/src/core.py @@ -533,6 +533,12 @@ class Manager: # We have enough free space, so lets resume this torrent self.resume(unique_ID) else: + import gtk + import dialogs + gtk.gdk.threads_enter() + result = dialogs.show_popup_warning(None, _("You're out \ +of HD space! Oops!\nWe had to pause at least one torrent")) + gtk.gdk.threads_leave() print "Not enough free space to resume this torrent!" else: #We're using compact allocation so lets just resume self.resume(unique_ID)