Author: duncan
Date: Fri Dec 22 09:10:20 2006
New Revision: 8788
Modified:
branches/rel-1/freevo/src/video/__init__.py
branches/rel-1/freevo/src/video/videoitem.py
Log:
[ 1620452 ] Items with subitems don't show thumbnails menu entry
Patch from Gorka Olaizola applied
Modified: branches/rel-1/freevo/src/video/__init__.py
==============================================================================
--- branches/rel-1/freevo/src/video/__init__.py (original)
+++ branches/rel-1/freevo/src/video/__init__.py Fri Dec 22 09:10:20 2006
@@ -126,7 +126,7 @@
name = file[:pos] + file[pos:].replace('1', '1-%s' %
end, 1)
x = VideoItem(name, parent)
x.set_url(file, False)
- x.files = FileInformation()
+ x.files = []
for f in [ file ] + add_file:
x.files.append(f)
x.subitems.append(VideoItem(f, x))
Modified: branches/rel-1/freevo/src/video/videoitem.py
==============================================================================
--- branches/rel-1/freevo/src/video/videoitem.py (original)
+++ branches/rel-1/freevo/src/video/videoitem.py Fri Dec 22 09:10:20 2006
@@ -288,7 +288,7 @@
if self.variants and len(self.variants) > 1:
items = [ (self.show_variants, _('Show variants')) ] + items
- if self.mode == 'file' and not self.variants and not self.subitems and
\
+ if self.mode == 'file' and not self.variants and \
(not self.image or not self.image.endswith('raw')):
items.append((self.create_thumbnail, _('Create Thumbnail'),
'create_thumbnail'))
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog