From 23b55522ba2d230f0f8f624117ed86f599c14620 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Sun, 22 Oct 2017 16:36:46 +0300 Subject: [PATCH] file transfer cancelling fix --- toxygen/profile.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/toxygen/profile.py b/toxygen/profile.py index 59c0e69..e453059 100644 --- a/toxygen/profile.py +++ b/toxygen/profile.py @@ -995,11 +995,12 @@ class Profile(basecontact.BaseContact, Singleton): if friend_number == self.get_active_number() and self.is_active_a_friend(): tmp = self._messages.count() + i if tmp >= 0: - self._messages.itemWidget(self._messages.item(tmp)).update(TOX_FILE_TRANSFER_STATE['CANCELLED'], - 0, -1) + self._messages.itemWidget( + self._messages.item(tmp)).update_transfer_state(TOX_FILE_TRANSFER_STATE['CANCELLED'], + 0, -1) - def cancel_not_started_transfer(self, time): - self.get_curr_friend().delete_one_unsent_file(time) + def cancel_not_started_transfer(self, cancel_time): + self.get_curr_friend().delete_one_unsent_file(cancel_time) self.update() def pause_transfer(self, friend_number, file_number, by_friend=False):