From 2ae56961449eefe6a9ca844f64c6c25a87b2a2fd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 26 Apr 2010 18:38:30 -0600 Subject: [PATCH] ... --- src/calibre/gui2/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/ui.py b/src/calibre/gui2/ui.py index 3cbd130b66..e6cdf2bda9 100644 --- a/src/calibre/gui2/ui.py +++ b/src/calibre/gui2/ui.py @@ -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):