prevent TB with context menu on roster
This commit is contained in:
parent
029668bf20
commit
e35e5029f1
|
@ -1712,6 +1712,9 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
self.tree.get_selection().unselect_all()
|
self.tree.get_selection().unselect_all()
|
||||||
return
|
return
|
||||||
|
if not iter:
|
||||||
|
# no row is selected
|
||||||
|
return
|
||||||
model = self.tree.get_model()
|
model = self.tree.get_model()
|
||||||
path = model.get_path(iter)
|
path = model.get_path(iter)
|
||||||
self.tree.get_selection().select_path(path)
|
self.tree.get_selection().select_path(path)
|
||||||
|
|
Loading…
Reference in New Issue