mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix a bug with non-ascii text in the create catalog dialog
Fixes #1241515 [Create Catalog: Catalog title problems with special characters](https://bugs.launchpad.net/calibre/+bug/1241515) Merge branch 'master' of https://github.com/GRiker/calibre
This commit is contained in:
commit
6db803d45d
@ -274,7 +274,7 @@ class libiMobileDevice():
|
|||||||
dst.write(data)
|
dst.write(data)
|
||||||
bytes_remaining = 0
|
bytes_remaining = 0
|
||||||
else:
|
else:
|
||||||
self._log("copying %d {:,} bytes".format(file_size))
|
self._log("copying {:,} bytes".format(file_size))
|
||||||
data = self._afc_file_read(handle, file_size, mode)
|
data = self._afc_file_read(handle, file_size, mode)
|
||||||
dst.write(data)
|
dst.write(data)
|
||||||
|
|
||||||
|
@ -287,7 +287,7 @@ class PluginWidget(QWidget,Ui_Form):
|
|||||||
if child.objectName() == 'format':
|
if child.objectName() == 'format':
|
||||||
current_format = str(child.currentText()).strip()
|
current_format = str(child.currentText()).strip()
|
||||||
elif child.objectName() == 'title':
|
elif child.objectName() == 'title':
|
||||||
current_title = str(child.text()).strip()
|
current_title = unicode(child.text()).strip()
|
||||||
self.parentWidget().blockSignals(False)
|
self.parentWidget().blockSignals(False)
|
||||||
return current_format, current_title
|
return current_format, current_title
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user