correctly use getter / setter. Fixes #7970

This commit is contained in:
Yann Leboulanger 2015-02-16 13:11:17 +01:00
parent a21f6ba561
commit 172fc16784
1 changed files with 6 additions and 6 deletions

View File

@ -507,7 +507,7 @@ class ServiceDiscoveryWindow(object):
def __init__(self, account, jid='', node='', address_entry=False,
parent=None, initial_identities=None):
self.account = account
self._account = account
self.parent = parent
if not jid:
jid = gajim.config.get_per('accounts', account, 'hostname')
@ -589,12 +589,12 @@ _('Without a connection, you can not browse available services'))
self.window.show_all()
@property
def _get_account(self):
return self.account
def account(self):
return self._account
@property
def _set_account(self, value):
self.account = value
@account.setter
def account(self, value):
self._account = value
self.cache.account = value
if self.browser:
self.browser.account = value