try to fix a TB

This commit is contained in:
Nikos Kouremenos 2005-07-25 18:48:15 +00:00
parent 435f4ad0a0
commit 5720ddba59
1 changed files with 3 additions and 1 deletions

View File

@ -49,8 +49,10 @@ class RosterWindow:
def get_account_iter(self, name): def get_account_iter(self, name):
if self.regroup: if self.regroup:
return None return
model = self.tree.get_model() model = self.tree.get_model()
if model is None:
return
account = model.get_iter_root() account = model.get_iter_root()
while account: while account:
account_name = model.get_value(account, 3) account_name = model.get_value(account, 3)