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: