summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2013-06-13 16:10:28 -0400
committerCole Robinson <crobinso@redhat.com>2013-06-13 16:10:44 -0400
commitcbe866594813e9d16e6fcf4d603c62be81d816ec (patch)
tree3d890127b0ffec3b7e2dd54ae23a47df410be4ee
parentf3751e6fe9d8b8ce99a06e6a3ffc380e567fc939 (diff)
downloadvirt-manager-cbe866594813e9d16e6fcf4d603c62be81d816ec.tar.gz
libguestfs: Don't try to create icon if none found
-rw-r--r--virtManager/inspection.py2
-rw-r--r--virtManager/manager.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/virtManager/inspection.py b/virtManager/inspection.py
index 40d24b35..9b43e9ec 100644
--- a/virtManager/inspection.py
+++ b/virtManager/inspection.py
@@ -256,7 +256,7 @@ class vmmInspection(vmmGObject):
data.hostname = str(hostname)
data.product_name = str(product_name)
data.product_variant = str(product_variant)
- data.icon = str(icon)
+ data.icon = icon
data.applications = list(apps)
self._set_vm_inspection_data(vm, data)
diff --git a/virtManager/manager.py b/virtManager/manager.py
index b30728fa..3620268c 100644
--- a/virtManager/manager.py
+++ b/virtManager/manager.py
@@ -999,6 +999,7 @@ class vmmManager(vmmGObjectUI):
png_data = vm.inspection.icon
if png_data is None:
return None
+
try:
pb = GdkPixbuf.PixbufLoader()
pb.set_size(w, h)