prevent TB with context menu on roster

This commit is contained in:
Dimitur Kirov 2006-04-22 12:45:01 +00:00
parent 029668bf20
commit e35e5029f1
1 changed files with 3 additions and 0 deletions

View File

@ -1712,6 +1712,9 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
except TypeError:
self.tree.get_selection().unselect_all()
return
if not iter:
# no row is selected
return
model = self.tree.get_model()
path = model.get_path(iter)
self.tree.get_selection().select_path(path)