mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 04:55:02 +01:00
IGN:Fix --develop-from resulting in unusable ebook-viewer on windows
This commit is contained in:
parent
f0a7a8ecd8
commit
8f8676d25a
1 changed files with 4 additions and 1 deletions
|
|
@ -586,8 +586,11 @@ def sub(match):
|
|||
if form.endswith('viewer%smain.ui'%os.sep):
|
||||
info('\t\tPromoting WebView')
|
||||
dat = dat.replace('self.view = QtWebKit.QWebView(', 'self.view = DocumentView(')
|
||||
dat = dat.replace('from PyQt4 import QtWebKit', '')
|
||||
if iswindows:
|
||||
dat = dat.replace('self.view = QWebView(', 'self.view = DocumentView(')
|
||||
dat = dat.replace('from QtWebKit.QWebView import QWebView', '')
|
||||
dat += '\n\nfrom calibre.gui2.viewer.documentview import DocumentView'
|
||||
dat += '\nQtWebKit'
|
||||
|
||||
open(compiled_form, 'wb').write(dat)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue