From df7755c41e97b38e3300c6f956030661de4df1f9 Mon Sep 17 00:00:00 2001 From: Mark Ryan Date: Thu, 18 Jul 2013 21:30:02 +0200 Subject: [Icons] Fix for servers that do not supply icons Servers that do not provide icons can cause dleyna-control to access an unassigned variable. For more information see https://github.com/01org/dleyna-control/issues/42 Signed-off-by: Mark Ryan --- src/msd/msd_main_window.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/msd/msd_main_window.py b/src/msd/msd_main_window.py index dbf941d..9911261 100644 --- a/src/msd/msd_main_window.py +++ b/src/msd/msd_main_window.py @@ -45,6 +45,7 @@ class MainWindow(object): Gtk.main_quit() def __append_server_list_row(self, list_store, server): + image = None if server.icon: image = server.icon.get_pixbuf() image = image.scale_simple(32, 32, GdkPixbuf.InterpType.BILINEAR) -- cgit v1.2.1