don't crash when we close rhythmbox while Gajim is running. fixes #3442
This commit is contained in:
parent
fe0ac73f3d
commit
cf9945245a
|
@ -136,6 +136,8 @@ class MusicTrackListener(gobject.GObject):
|
||||||
return info
|
return info
|
||||||
|
|
||||||
def _rhythmbox_music_track_change_cb(self, uri):
|
def _rhythmbox_music_track_change_cb(self, uri):
|
||||||
|
if not uri:
|
||||||
|
return
|
||||||
bus = dbus.SessionBus()
|
bus = dbus.SessionBus()
|
||||||
rbshellobj = bus.get_object('org.gnome.Rhythmbox',
|
rbshellobj = bus.get_object('org.gnome.Rhythmbox',
|
||||||
'/org/gnome/Rhythmbox/Shell')
|
'/org/gnome/Rhythmbox/Shell')
|
||||||
|
|
Loading…
Reference in New Issue