send fix
This commit is contained in:
parent
42703c9bc2
commit
6d56b2aa5b
2 changed files with 2 additions and 2 deletions
|
@ -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):
|
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,
|
friend_number,
|
||||||
file_number,
|
file_number,
|
||||||
position,
|
position,
|
||||||
|
|
|
@ -279,7 +279,7 @@ class MainWindow(QtGui.QMainWindow):
|
||||||
def send_file(self):
|
def send_file(self):
|
||||||
if self.profile.is_active_online(): # active friend exists and online
|
if self.profile.is_active_online(): # active friend exists and online
|
||||||
name = QtGui.QFileDialog.getOpenFileName(self, 'Choose file')
|
name = QtGui.QFileDialog.getOpenFileName(self, 'Choose file')
|
||||||
if name:
|
if name[0]:
|
||||||
self.profile.send_file(name[0])
|
self.profile.send_file(name[0])
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue