Sat, 12 Jul 2008 14:12:11 +0200 <jerome.chabod@ifrance.com>

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
This commit is contained in:
Jérôme Chabod 2008-07-12 12:18:07 +00:00
parent 61d09e52e5
commit 53c88089b8
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,10 @@
Sat, 12 Jul 2008 14:12:11 +0200 <jerome.chabod@ifrance.com>
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 <me@nikosapi.org>
Merge patch to fix bug #147 (Sync doesn't work)

View file

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