file transfer cancelling fix
This commit is contained in:
parent
5a5b0e9069
commit
23b55522ba
@ -995,11 +995,12 @@ class Profile(basecontact.BaseContact, Singleton):
|
|||||||
if friend_number == self.get_active_number() and self.is_active_a_friend():
|
if friend_number == self.get_active_number() and self.is_active_a_friend():
|
||||||
tmp = self._messages.count() + i
|
tmp = self._messages.count() + i
|
||||||
if tmp >= 0:
|
if tmp >= 0:
|
||||||
self._messages.itemWidget(self._messages.item(tmp)).update(TOX_FILE_TRANSFER_STATE['CANCELLED'],
|
self._messages.itemWidget(
|
||||||
|
self._messages.item(tmp)).update_transfer_state(TOX_FILE_TRANSFER_STATE['CANCELLED'],
|
||||||
0, -1)
|
0, -1)
|
||||||
|
|
||||||
def cancel_not_started_transfer(self, time):
|
def cancel_not_started_transfer(self, cancel_time):
|
||||||
self.get_curr_friend().delete_one_unsent_file(time)
|
self.get_curr_friend().delete_one_unsent_file(cancel_time)
|
||||||
self.update()
|
self.update()
|
||||||
|
|
||||||
def pause_transfer(self, friend_number, file_number, by_friend=False):
|
def pause_transfer(self, friend_number, file_number, by_friend=False):
|
||||||
|
Loading…
Reference in New Issue
Block a user