mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
More minor bug fixes
This commit is contained in:
parent
599543800c
commit
57e216f0c7
@ -130,6 +130,7 @@ class Main(QObject, Ui_MainWindow):
|
||||
self.book_cover.setPixmap(cover)
|
||||
self.book_cover.show()
|
||||
self.book_info.show()
|
||||
self.current_view.scrollTo(current)
|
||||
|
||||
def formats_added(self, index):
|
||||
if index == self.library_view.currentIndex():
|
||||
@ -223,12 +224,14 @@ class Main(QObject, Ui_MainWindow):
|
||||
ebd = EditBookDialog(dialog, _id, self.library_model.db)
|
||||
if dialog.exec_() == QDialog.Accepted:
|
||||
accepted = True
|
||||
title = str(ebd.title.text()).strip()
|
||||
authors = str(ebd.authors.text()).strip()
|
||||
title = unicode(ebd.title.text().toUtf8(), 'utf-8').strip()
|
||||
authors = unicode(ebd.authors.text().toUtf8(), 'utf-8').strip()
|
||||
rating = ebd.rating.value()
|
||||
tags = str(ebd.tags.text()).strip()
|
||||
publisher = str(ebd.publisher.text()).strip()
|
||||
comments = str(ebd.comments.toPlainText()).strip()
|
||||
tags = unicode(ebd.tags.text().toUtf8(), 'utf-8').strip()
|
||||
publisher = unicode(ebd.publisher.text().toUtf8(), \
|
||||
'utf-8').strip()
|
||||
comments = unicode(ebd.comments.toPlainText().toUtf8(), \
|
||||
'utf-8').strip()
|
||||
pix = ebd.cover.pixmap()
|
||||
if not pix.isNull():
|
||||
self.update_cover(pix)
|
||||
|
Loading…
x
Reference in New Issue
Block a user