mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 15:03:36 +02:00
...
This commit is contained in:
parent
f0db9b8a2b
commit
1e905098be
1 changed files with 2 additions and 1 deletions
|
|
@ -178,8 +178,9 @@ def choose_manually(filetype, parent):
|
|||
if os.path.isdir(ans):
|
||||
app = get_bundle_data(ans)
|
||||
if app is None:
|
||||
return error_dialog(parent, _('Invalid Application'), _(
|
||||
error_dialog(parent, _('Invalid Application'), _(
|
||||
'%s is not a valid macOS application bundle.') % ans, show=True)
|
||||
return
|
||||
return app
|
||||
if not os.access(ans, os.X_OK):
|
||||
error_dialog(parent, _('Cannot execute'), _(
|
||||
|
|
|
|||
Loading…
Reference in a new issue