mirror of
https://github.com/Leseratte10/acsm-calibre-plugin.git
synced 2024-12-22 17:29:56 +06:00
Fix loan list for nameless books
This commit is contained in:
parent
93d732f0d6
commit
a9519fbd20
@ -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 New Issue
Block a user