mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-29 13:14:50 +01:00
Fix #5515 - job manager exception
This commit is contained in:
parent
f788e468eb
commit
e9402eb98a
1 changed files with 4 additions and 2 deletions
|
|
@ -309,8 +309,10 @@ def write_settings(self):
|
|||
m = dynamic[self.__class__.__name__+'column width map']
|
||||
if m is None:
|
||||
m = {}
|
||||
for i,c in enumerate(self.model().column_map):
|
||||
m[c] = self.columnWidth(i)
|
||||
cmap = getattr(self.model(), 'column_map', None)
|
||||
if cmap is not None:
|
||||
for i,c in enumerate(cmap):
|
||||
m[c] = self.columnWidth(i)
|
||||
dynamic[self.__class__.__name__+'column width map'] = m
|
||||
self.cw = m
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue