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 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI):
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):