| 319 | | gajim.interface.roster.status_combobox.set_active(index) |
| | 319 | current = gajim.interface.roster.status_combobox.get_active() |
| | 320 | if index != current: |
| | 321 | gajim.interface.roster.status_combobox.set_active(index) |
| | 322 | else: |
| | 323 | # We maybe need to emit the changed signal if all globaly sync'ed |
| | 324 | # account don't have the global status |
| | 325 | need_to_change = False |
| | 326 | accounts = gajim.connections.keys() |
| | 327 | for acct in accounts: |
| | 328 | if not gajim.config.get_per('accounts', acct, |
| | 329 | 'sync_with_global_status'): |
| | 330 | continue |
| | 331 | acct_show = gajim.SHOW_LIST[gajim.connections[acct].connected] |
| | 332 | if acct_show != show: |
| | 333 | need_to_change = True |
| | 334 | break |
| | 335 | if need_to_change: |
| | 336 | gajim.interface.roster.status_combobox.emit('changed') |