correctly find JID column in search result window. Fixes #7347

This commit is contained in:
Yann Leboulanger 2013-07-22 20:36:03 +02:00
parent b4c3d624e7
commit e24f10bd78
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ class SearchWindow:
self.on_result_treeview_cursor_changed) self.on_result_treeview_cursor_changed)
counter = 0 counter = 0
for field in self.dataform.items[0].fields: for field in self.dataform.reported.iter_fields():
if field.var == 'jid': if field.var == 'jid':
self.jid_column = counter self.jid_column = counter
break break