projects
/
mussorgsky
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
53ca804
)
Be sure there is image and thumb
author
Ivan Frade
<ivan.frade@gmail.com>
Wed, 26 Aug 2009 08:47:17 +0000
(11:47 +0300)
committer
Ivan Frade
<ivan.frade@gmail.com>
Wed, 26 Aug 2009 08:47:17 +0000
(11:47 +0300)
Maybe it cannot happen. But a check never hurts
src/album_art_panel.py
patch
|
blob
|
history
diff --git
a/src/album_art_panel.py
b/src/album_art_panel.py
index
f98feb3
..
bbc338d
100644
(file)
--- a/
src/album_art_panel.py
+++ b/
src/album_art_panel.py
@@
-74,8
+74,9
@@
class MussorgskyAlbumArtPanel (hildon.StackableWindow):
response = dialog.run ()
if (response > -1):
(img, thumb) = dialog.get_selection ()
- pixbuf = gtk.gdk.pixbuf_new_from_file_at_size (thumb, 64, 64)
- treeview.get_model ().set (it, 1, pixbuf)
+ if img and thumb:
+ pixbuf = gtk.gdk.pixbuf_new_from_file_at_size (thumb, 64, 64)
+ treeview.get_model ().set (it, 1, pixbuf)
dialog.destroy ()
if __name__ == "__main__":