mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Windows: Fix browse for cover button ot working with long paths
This commit is contained in:
parent
ea8d34353b
commit
cef46ad59f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user