mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 05:56:19 +01:00
More 0.7.x fixes
This commit is contained in:
parent
440eb3f438
commit
a4eef46ff0
1 changed files with 4 additions and 1 deletions
|
|
@ -361,7 +361,10 @@ def __init__(self, window, db, server=None):
|
|||
|
||||
column_map = config['column_map']
|
||||
for col in column_map + [i for i in ALL_COLUMNS if i not in column_map]:
|
||||
item = QListWidgetItem(BooksModel.headers[col], self.columns)
|
||||
try:
|
||||
item = QListWidgetItem(BooksModel.headers[col], self.columns)
|
||||
except KeyError:
|
||||
continue
|
||||
item.setData(Qt.UserRole, QVariant(col))
|
||||
item.setFlags(Qt.ItemIsEnabled|Qt.ItemIsUserCheckable|Qt.ItemIsSelectable)
|
||||
item.setCheckState(Qt.Checked if col in column_map else Qt.Unchecked)
|
||||
|
|
|
|||
Loading…
Reference in a new issue