mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix regression that disabled comments section in metadata dialog.
This commit is contained in:
parent
e236efdad5
commit
487117f48f
@ -42,6 +42,8 @@ def build_forms(forms):
|
|||||||
dat = re.compile(r'QtGui.QApplication.translate\(.+?,\s+"(.+?)(?<!\\)",.+?\)', re.DOTALL).sub(r'_("\1")', dat)
|
dat = re.compile(r'QtGui.QApplication.translate\(.+?,\s+"(.+?)(?<!\\)",.+?\)', re.DOTALL).sub(r'_("\1")', dat)
|
||||||
|
|
||||||
# Workaround bug in Qt 4.4 on Windows
|
# Workaround bug in Qt 4.4 on Windows
|
||||||
|
if form.endswith('dialogs/config.ui') or form.endswith('dialogs/lrf_single.ui'):
|
||||||
|
print 'Implementing Workaround for buggy pyuic in form', form
|
||||||
dat = re.sub(r'= QtGui\.QTextEdit\(self\..*?\)', '= QtGui.QTextEdit()', dat)
|
dat = re.sub(r'= QtGui\.QTextEdit\(self\..*?\)', '= QtGui.QTextEdit()', dat)
|
||||||
dat = re.sub(r'= QtGui\.QListWidget\(self\..*?\)', '= QtGui.QListWidget()', dat)
|
dat = re.sub(r'= QtGui\.QListWidget\(self\..*?\)', '= QtGui.QListWidget()', dat)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user