[gnome-dvb-daemon] Fix exception in Totem plugin at startup



commit 76bf99c3f7faf31f4cc563a8002f70d9012cf22f
Author: Blonďák <blondak caslav gmail com>
Date:   Sun Mar 9 14:18:30 2014 +0100

    Fix exception in Totem plugin at startup
    
    https://bugzilla.gnome.org/show_bug.cgi?id=709483

 client/totem-plugin/dvb-daemon.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/client/totem-plugin/dvb-daemon.py b/client/totem-plugin/dvb-daemon.py
index 5afcc04..502986d 100644
--- a/client/totem-plugin/dvb-daemon.py
+++ b/client/totem-plugin/dvb-daemon.py
@@ -458,7 +458,8 @@ class DVBDaemonPlugin(GObject.GObject, Peas.Activatable):
         totemtv_image.show()
 
         watch_item = uimanager.get_widget('/tmw-menubar/movie/devices-placeholder/dvbdevice')
-        watch_item.set_image(totemtv_image)
+        if watch_item:
+            watch_item.set_image(totemtv_image)
 
         timers_image = Gtk.Image.new_from_icon_name("stock_timer", Gtk.IconSize.MENU)
         timers_image.show()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]