[shtrom] don't overwrite status message when we display current song. Fixes #3558

This commit is contained in:
Yann Leboulanger 2007-11-15 18:14:28 +00:00
parent 508b411e80
commit 6c5f65ddf0
1 changed files with 7 additions and 2 deletions

View File

@ -3752,8 +3752,13 @@ class RosterWindow:
index('invisible'): index('invisible'):
continue continue
current_show = gajim.SHOW_LIST[gajim.connections[account].connected] current_show = gajim.SHOW_LIST[gajim.connections[account].connected]
self.send_status(account, current_show, status_message) # Keep the last status message, replacing only the current song part
current_status_message = gajim.connections[account].status
song_offset = current_status_message.find('')
if song_offset > 0:
current_status_message = current_status_message[0:song_offset]
status_message = current_status_message.strip() + '\n' + status_message
self.send_status(account, current_show, status_message.strip())
def update_status_combobox(self): def update_status_combobox(self):
# table to change index in connection.connected to index in combobox # table to change index in connection.connected to index in combobox