This commit is contained in:
Kovid Goyal 2010-04-26 18:38:30 -06:00
parent 10e28f5d9f
commit 2ae5696144

View file

@ -1668,7 +1668,7 @@ def add_formats(self, dest_id, src_books, replace=False):
if src_book:
fmt = os.path.splitext(src_book)[-1].replace('.', '').upper()
with open(src_book, 'rb') as f:
self.db.add_format(dest_id, fmt, f, index_is_id=True,
self.library_view.model().db.add_format(dest_id, fmt, f, index_is_id=True,
notify=False, replace=replace)
def books_to_merge(self, rows):