From 75ad801f62ddce4b094dd093905a014f8d96cc42 Mon Sep 17 00:00:00 2001 From: js Date: Fri, 16 May 2008 16:04:51 +0000 Subject: [PATCH] Fix music_track_info for multiple accounts. --- src/common/connection.py | 1 + src/roster_window.py | 10 ++++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/common/connection.py b/src/common/connection.py index fccf57476..60e266043 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -144,6 +144,7 @@ class Connection(ConnectionHandlers): self.blocked_list = [] self.blocked_contacts = [] self.blocked_groups = [] + self.music_track_info = None self.pep_supported = False self.mood = {} self.tune = {} diff --git a/src/roster_window.py b/src/roster_window.py index bfd193243..214affee9 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1602,14 +1602,14 @@ class RosterWindow: continue if not gajim.connections[account].pep_supported: continue - if self._music_track_info == music_track_info: + if gajim.connections[account].music_track_info == music_track_info: continue pep.user_send_tune(account, artist, title, source) - self._music_track_info = music_track_info + gajim.connections[account].music_track_info = music_track_info elif gajim.connections[account].pep_supported: - if self._music_track_info != music_track_info: + if gajim.connections[account].music_track_info != music_track_info: pep.user_send_tune(account, artist, title, source) - self._music_track_info = music_track_info + gajim.connections[account].music_track_info = music_track_info def connected_rooms(self, account): if account in gajim.gc_connected[account].values(): @@ -5727,8 +5727,6 @@ class RosterWindow: # quitting self.quit_on_next_offline = -1 - self._music_track_info = None - # uf_show, img, show, sensitive liststore = gtk.ListStore(str, gtk.Image, str, bool) self.status_combobox = self.xml.get_widget('status_combobox')