ui warning of out of hd space

This commit is contained in:
Marcos Pinto 2007-11-06 21:30:12 +00:00
parent 86732c72d0
commit f9e5157d6e
1 changed files with 6 additions and 0 deletions

View File

@ -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)