mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix exception when requesting the column context menu in DeviceBooksView
This commit is contained in:
parent
df08a114ed
commit
6bcf21cd74
@ -304,6 +304,7 @@ class BooksView(QTableView): # {{{
|
|||||||
a.setCheckable(True)
|
a.setCheckable(True)
|
||||||
a.setChecked(True)
|
a.setChecked(True)
|
||||||
|
|
||||||
|
if not isinstance(self, DeviceBooksView):
|
||||||
if self._model.db.field_metadata[col]['is_category']:
|
if self._model.db.field_metadata[col]['is_category']:
|
||||||
act = self.column_header_context_menu.addAction(_('Quickview column %s') %
|
act = self.column_header_context_menu.addAction(_('Quickview column %s') %
|
||||||
name,
|
name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user