translation settings improvements

This commit is contained in:
ingvar1995 2016-06-18 23:50:12 +03:00
parent 48360ea54c
commit 03e34cc43f
4 changed files with 18 additions and 16 deletions

View file

@ -163,7 +163,10 @@ class Profile(contact.Contact, Singleton):
self._screen.typing.setVisible(False)
if value is not None:
if self._active_friend + 1:
self._friends[self._active_friend].curr_text = self._screen.messageEdit.toPlainText()
try:
self._friends[self._active_friend].curr_text = self._screen.messageEdit.toPlainText()
except:
pass
self._active_friend = value
friend = self._friends[value]
self._friends[value].reset_messages()