some fixes
This commit is contained in:
parent
3ef581bc5d
commit
19fb905554
6 changed files with 19 additions and 14 deletions
|
@ -63,6 +63,7 @@ class IncomingCallWidget(widgets.CenteredWidget):
|
|||
|
||||
def __init__(self):
|
||||
QtCore.QThread.__init__(self)
|
||||
self.a = None
|
||||
|
||||
def run(self):
|
||||
class AudioFile:
|
||||
|
|
|
@ -109,6 +109,10 @@ class BaseContact:
|
|||
def get_pixmap(self):
|
||||
return self._widget.avatar_label.pixmap()
|
||||
|
||||
# -----------------------------------------------------------------------------------------------------------------
|
||||
# Widgets
|
||||
# -----------------------------------------------------------------------------------------------------------------
|
||||
|
||||
def init_widget(self):
|
||||
if self._widget is not None:
|
||||
self._widget.name.setText(self._name)
|
||||
|
|
|
@ -146,7 +146,7 @@ class Contact(basecontact.BaseContact):
|
|||
|
||||
old = filter(save_message, self._corr[:-SAVE_MESSAGES])
|
||||
self._corr = list(old) + self._corr[-SAVE_MESSAGES:]
|
||||
text_messages = filter(lambda x: x.get_type <= 1, self._corr)
|
||||
text_messages = filter(lambda x: x.get_type() <= 1, self._corr)
|
||||
self._unsaved_messages = min(self._unsaved_messages, len(list(text_messages)))
|
||||
self._search_index = 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue