Use the right way to copy a list in python, thanks Yann.
This commit is contained in:
parent
ba2f6221fb
commit
4018894f41
|
@ -853,7 +853,6 @@ class RosterWindow:
|
|||
account, bookmark)
|
||||
gc_sub_menu.append(item)
|
||||
|
||||
|
||||
def _change_style(self, model, path, iter, option):
|
||||
if option is None:
|
||||
model[iter][C_NAME] = model[iter][C_NAME]
|
||||
|
|
|
@ -271,7 +271,9 @@ class Systray:
|
|||
# if we sort_by_show : contacts_table = [group, status, name]
|
||||
# else : contacts_table = [group, name, status]
|
||||
contacts_table = []
|
||||
show_list = gajim.SHOW_LIST
|
||||
show_list = []
|
||||
for show in gajim.SHOW_LIST: # copy gajim.SHOW_LIST in show_list
|
||||
show_list.append(show)
|
||||
show_list.append('not in roster') # not in roster is not in this list but we need it
|
||||
for jid in gajim.contacts.get_jid_list(account):
|
||||
contact = gajim.contacts.get_contact_with_highest_priority(account,
|
||||
|
|
Loading…
Reference in New Issue