diff options
author | Mark Ryan <mark.d.ryan@intel.com> | 2013-07-18 21:30:02 +0200 |
---|---|---|
committer | Regis Merlino <regis.merlino@intel.com> | 2013-07-19 17:16:06 +0200 |
commit | df7755c41e97b38e3300c6f956030661de4df1f9 (patch) | |
tree | 4a6b0275897285b7df6f4599e39b2573ea9c3d80 /src/msd | |
parent | 1ee0ba068a0619384cce2f2164d6815f00b185bc (diff) | |
download | dleyna-control-df7755c41e97b38e3300c6f956030661de4df1f9.tar.gz |
[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 <mark.d.ryan@intel.com>
Diffstat (limited to 'src/msd')
-rw-r--r-- | src/msd/msd_main_window.py | 1 |
1 files changed, 1 insertions, 0 deletions
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) |