mirror of
https://github.com/Leseratte10/acsm-calibre-plugin
synced 2024-11-15 19:48:29 +01:00
Fix loan list for nameless books
This commit is contained in:
parent
93d732f0d6
commit
a9519fbd20
1 changed files with 5 additions and 1 deletions
|
@ -1416,7 +1416,11 @@ class RentedBooksDialog(QDialog):
|
|||
|
||||
info = "(" + self.td_format(timestamp - currenttime) + " remaining)"
|
||||
|
||||
item = QListWidgetItem(book["book_name"] + " " + info)
|
||||
book_name = book["book_name"]
|
||||
if book_name is None:
|
||||
book_name = "(unknown book)"
|
||||
|
||||
item = QListWidgetItem(book_name + " " + info)
|
||||
item.setData(QtCore.Qt.UserRole, book["loanID"])
|
||||
self.listy.addItem(item)
|
||||
|
||||
|
|
Loading…
Reference in a new issue