From 0e09b58efb7897fbfe26ffec93923ffc83427cbe Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 4 Oct 2020 21:31:42 +0530 Subject: [PATCH] Fix a regression that broke application of plugboards when sending by email --- src/calibre/gui2/library/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/library/models.py b/src/calibre/gui2/library/models.py index bce042808c..8069716284 100644 --- a/src/calibre/gui2/library/models.py +++ b/src/calibre/gui2/library/models.py @@ -660,7 +660,7 @@ class BooksModel(QAbstractTableModel): # {{{ cover_as_data=True) newmi = None if use_plugboard and format.lower() in plugboard_formats: - plugboards = self.new_api.pref('plugboards', {}) + plugboards = self.db.new_api.pref('plugboards', {}) cpb = find_plugboard(use_plugboard, format.lower(), plugboards) if cpb: