mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1324 (Donate - error)
This commit is contained in:
parent
dac9fb44dd
commit
70c1443b96
@ -1250,9 +1250,10 @@ in which you want to store your books files. Any existing books will be automati
|
||||
</form>
|
||||
'''
|
||||
MSG = _('is the result of the efforts of many volunteers from all over the world. If you find it useful, please consider donating to support its development.')
|
||||
HTML = '''
|
||||
HTML = u'''
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Donate to support calibre</title>
|
||||
</head>
|
||||
<body style="background:white">
|
||||
@ -1263,7 +1264,7 @@ in which you want to store your books files. Any existing books will be automati
|
||||
</html>
|
||||
'''%(MSG, BUTTON)
|
||||
pt = PersistentTemporaryFile('_donate.htm')
|
||||
pt.write(HTML)
|
||||
pt.write(HTML.encode('utf-8'))
|
||||
pt.close()
|
||||
QDesktopServices.openUrl(QUrl.fromLocalFile(pt.name))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user