Fixed bug with auto accept if dir doesn't exist
This commit is contained in:
parent
021ec52e3d
commit
0a54012cf5
@ -951,7 +951,9 @@ class Profile(basecontact.BaseContact, Singleton):
|
|||||||
file_number)
|
file_number)
|
||||||
|
|
||||||
elif auto:
|
elif auto:
|
||||||
path = settings['auto_accept_path'] or curr_directory()
|
path = settings['auto_accept_path']
|
||||||
|
if not path or not os.path.exists(path):
|
||||||
|
path = curr_directory()
|
||||||
self.accept_transfer(None, path + '/' + file_name, friend_number, file_number, size)
|
self.accept_transfer(None, path + '/' + file_name, friend_number, file_number, size)
|
||||||
tm = TransferMessage(MESSAGE_OWNER['FRIEND'],
|
tm = TransferMessage(MESSAGE_OWNER['FRIEND'],
|
||||||
time.time(),
|
time.time(),
|
||||||
|
@ -5,7 +5,7 @@ import sys
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
||||||
program_version = '0.4.3'
|
program_version = '0.4.4'
|
||||||
|
|
||||||
|
|
||||||
def cached(func):
|
def cached(func):
|
||||||
|
Loading…
Reference in New Issue
Block a user