From 6d56b2aa5b9e7bfcc79adb546dab327dc2461195 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Thu, 17 Mar 2016 23:58:38 +0300 Subject: [PATCH] send fix --- src/callbacks.py | 2 +- src/mainscreen.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/callbacks.py b/src/callbacks.py index df63bde..7c7cacd 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -167,7 +167,7 @@ def file_recv_chunk(tox, friend_number, file_number, position, chunk, length, us def file_chunk_request(tox, friend_number, file_number, position, size, user_data): - invoke_in_main_thread(Profile.get_instance().outgoing_chunck, + invoke_in_main_thread(Profile.get_instance().outgoing_chunk, friend_number, file_number, position, diff --git a/src/mainscreen.py b/src/mainscreen.py index be1f550..7beb48d 100644 --- a/src/mainscreen.py +++ b/src/mainscreen.py @@ -279,7 +279,7 @@ class MainWindow(QtGui.QMainWindow): def send_file(self): if self.profile.is_active_online(): # active friend exists and online name = QtGui.QFileDialog.getOpenFileName(self, 'Choose file') - if name: + if name[0]: self.profile.send_file(name[0]) # -----------------------------------------------------------------------------------------------------------------