Fix exception when requesting the column context menu in DeviceBooksView

This commit is contained in:
Charles Haley 2013-05-24 15:55:26 +02:00
parent df08a114ed
commit 6bcf21cd74

View File

@ -304,6 +304,7 @@ class BooksView(QTableView): # {{{
a.setCheckable(True)
a.setChecked(True)
if not isinstance(self, DeviceBooksView):
if self._model.db.field_metadata[col]['is_category']:
act = self.column_header_context_menu.addAction(_('Quickview column %s') %
name,