Windows: Fix browse for cover button ot working with long paths

This commit is contained in:
Kovid Goyal 2020-10-23 21:12:59 +05:30
parent ea8d34353b
commit cef46ad59f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1157,7 +1157,7 @@ class Cover(ImageView): # {{{
return
_file = files[0]
if _file:
_file = os.path.abspath(_file)
_file = make_long_path_useable(os.path.abspath(_file))
if not os.access(_file, os.R_OK):
d = error_dialog(self, _('Cannot read'),
_('You do not have permission to read the file: ') + _file)