Permalink
Browse files

Fix crash when no camera-video icon is present

  • Loading branch information...
1 parent e71691b commit 8dcfd72de13a0154a723213630d822cdee6cea83 @sroecker sroecker committed Oct 24, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 arista-gtk
View
@@ -1288,8 +1288,11 @@ class AddDialog(object):
for device, capture in self.finder.capture_devices.items():
iter = model.append()
- model.set_value(iter, 0, theme.load_icon("camera-video",
+ try:
+ model.set_value(iter, 0, theme.load_icon("camera-video",
size, 0))
+ except:
+ pass
model.set_value(iter, 1, capture.nice_label)
if capture.version == '1':
model.set_value(iter, 2, ("v4l://" + device, True))

0 comments on commit 8dcfd72

Please sign in to comment.