mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
...
This commit is contained in:
parent
23e63bd895
commit
460cb932af
@ -70,7 +70,7 @@ class NPWebView(QWebView):
|
|||||||
if ext not in BOOK_EXTENSIONS:
|
if ext not in BOOK_EXTENSIONS:
|
||||||
if ext == 'acsm':
|
if ext == 'acsm':
|
||||||
from calibre.gui2.dialogs.confirm_delete import confirm
|
from calibre.gui2.dialogs.confirm_delete import confirm
|
||||||
confirm('<p>' + _('This ebook is a DRMed EPUB file. '
|
if not confirm('<p>' + _('This ebook is a DRMed EPUB file. '
|
||||||
'You will be prompted to save this file to your '
|
'You will be prompted to save this file to your '
|
||||||
'computer. Once it is saved, open it with '
|
'computer. Once it is saved, open it with '
|
||||||
'<a href="http://www.adobe.com/products/digitaleditions/">'
|
'<a href="http://www.adobe.com/products/digitaleditions/">'
|
||||||
@ -79,7 +79,8 @@ class NPWebView(QWebView):
|
|||||||
'.epub file. You can add this book to calibre '
|
'.epub file. You can add this book to calibre '
|
||||||
'using "Add Books" and selecting the file from '
|
'using "Add Books" and selecting the file from '
|
||||||
'the ADE library folder.'),
|
'the ADE library folder.'),
|
||||||
'acsm_download', self)
|
'acsm_download', self):
|
||||||
|
return
|
||||||
home = os.path.expanduser('~')
|
home = os.path.expanduser('~')
|
||||||
name = QFileDialog.getSaveFileName(self,
|
name = QFileDialog.getSaveFileName(self,
|
||||||
_('File is not a supported ebook type. Save to disk?'),
|
_('File is not a supported ebook type. Save to disk?'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user