last_selected_contact is None if new selection

is not a contact
This commit is contained in:
Dimitur Kirov 2006-04-12 11:33:23 +00:00
parent ea1cf86dc3
commit 0a7e840756
1 changed files with 1 additions and 0 deletions

View File

@ -3222,6 +3222,7 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
return
contact_row = model[selected_iter]
if contact_row[C_TYPE] != 'contact':
self._last_selected_contact = None
return
jid = contact_row[C_JID].decode('utf-8')
account = contact_row[C_ACCOUNT].decode('utf-8')