From 53c88089b8a9ac6e67bb82cffeddca01577c847a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Chabod?= Date: Sat, 12 Jul 2008 12:18:07 +0000 Subject: [PATCH] Sat, 12 Jul 2008 14:12:11 +0200 Merge patch to fix bug #149 (Remove Old Podcasts does not always have enabled delete button) * src/gpodder/gui.py: Use count of selected episodes instead of total size to activate action button in episode selector (episodes with unknow size have a total size of zero) git-svn-id: svn://svn.berlios.de/gpodder/trunk@766 b0d088ad-0a06-0410-aad2-9ed5178a7e87 --- ChangeLog | 7 +++++++ src/gpodder/gui.py | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index cb48765d..a254d853 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Sat, 12 Jul 2008 14:12:11 +0200 +Merge patch to fix bug #149 (Remove Old Podcasts does not always have enabled +delete button) + * src/gpodder/gui.py: Use count of selected episodes instead of total + size to activate action button in episode selector (episodes with + unknow size have a total size of zero) + Fri, 11 Jul 2008 14:11:08 -0400 Merge patch to fix bug #147 (Sync doesn't work) diff --git a/src/gpodder/gui.py b/src/gpodder/gui.py index a7c92322..13cace48 100644 --- a/src/gpodder/gui.py +++ b/src/gpodder/gui.py @@ -3174,13 +3174,14 @@ class gPodderEpisodeSelector( GladeWidget): except: log( 'Cannot get size for %s', self.episodes[index].title, sender = self) - if total_size > 0: + if count > 0: text = [] if count == 1: text.append(_('One episodes selected')) else: text.append(_('%d episodes selected') % count) - text.append(_('total size: %s') % gl.format_filesize(total_size)) + if total_size > 0: + text.append(_('total size: %s') % gl.format_filesize(total_size)) self.labelTotalSize.set_text(', '.join(text)) self.btnOK.set_sensitive(True) else: