mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
more pyqt6 enum goodness
Fixes #1959011 [Printing doesn't work in beta 5.99.4 (portable)](https://bugs.launchpad.net/calibre/+bug/1959011)
This commit is contained in:
parent
cfe4673240
commit
4360f86c33
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ class PrintDialog(Dialog):
|
|||
def __init__(self, book_title, parent=None, prefs=vprefs):
|
||||
self.book_title = book_title
|
||||
self.default_file_name = sanitize_file_name(book_title[:75] + '.pdf')
|
||||
self.paper_size_map = {a:getattr(QPageSize, a.capitalize()) for a in PAPER_SIZES}
|
||||
self.paper_size_map = {a:getattr(QPageSize.PageSizeId, a.capitalize()) for a in PAPER_SIZES}
|
||||
Dialog.__init__(self, _('Print to PDF'), 'print-to-pdf', prefs=prefs, parent=parent)
|
||||
|
||||
def setup_ui(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue