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.setPixmap(cover)
|
||||||
self.book_cover.show()
|
self.book_cover.show()
|
||||||
self.book_info.show()
|
self.book_info.show()
|
||||||
|
self.current_view.scrollTo(current)
|
||||||
|
|
||||||
def formats_added(self, index):
|
def formats_added(self, index):
|
||||||
if index == self.library_view.currentIndex():
|
if index == self.library_view.currentIndex():
|
||||||
@ -223,12 +224,14 @@ class Main(QObject, Ui_MainWindow):
|
|||||||
ebd = EditBookDialog(dialog, _id, self.library_model.db)
|
ebd = EditBookDialog(dialog, _id, self.library_model.db)
|
||||||
if dialog.exec_() == QDialog.Accepted:
|
if dialog.exec_() == QDialog.Accepted:
|
||||||
accepted = True
|
accepted = True
|
||||||
title = str(ebd.title.text()).strip()
|
title = unicode(ebd.title.text().toUtf8(), 'utf-8').strip()
|
||||||
authors = str(ebd.authors.text()).strip()
|
authors = unicode(ebd.authors.text().toUtf8(), 'utf-8').strip()
|
||||||
rating = ebd.rating.value()
|
rating = ebd.rating.value()
|
||||||
tags = str(ebd.tags.text()).strip()
|
tags = unicode(ebd.tags.text().toUtf8(), 'utf-8').strip()
|
||||||
publisher = str(ebd.publisher.text()).strip()
|
publisher = unicode(ebd.publisher.text().toUtf8(), \
|
||||||
comments = str(ebd.comments.toPlainText()).strip()
|
'utf-8').strip()
|
||||||
|
comments = unicode(ebd.comments.toPlainText().toUtf8(), \
|
||||||
|
'utf-8').strip()
|
||||||
pix = ebd.cover.pixmap()
|
pix = ebd.cover.pixmap()
|
||||||
if not pix.isNull():
|
if not pix.isNull():
|
||||||
self.update_cover(pix)
|
self.update_cover(pix)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user