mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-27 12:44:55 +01:00
Fix #5500 (adding duplicate books creates temporary blank line at bottom of book list)
This commit is contained in:
parent
eabd4dc9b5
commit
d7a9c48849
1 changed files with 1 additions and 1 deletions
|
|
@ -199,11 +199,11 @@ def add(self, id, opf, cover, name):
|
|||
self.add_formats(id, formats)
|
||||
else:
|
||||
id = self.db.create_book_entry(mi, cover=cover, add_duplicates=False)
|
||||
self.number_of_books_added += 1
|
||||
if id is None:
|
||||
self.duplicates.append((mi, cover, orig_formats))
|
||||
else:
|
||||
self.add_formats(id, formats)
|
||||
self.number_of_books_added += 1
|
||||
else:
|
||||
self.names.append(name)
|
||||
self.paths.append(formats[0])
|
||||
|
|
|
|||
Loading…
Reference in a new issue