mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 14:23:42 +02:00
Fix #1756732 [uncaught error column bar](https://bugs.launchpad.net/calibre/+bug/1756732)
This commit is contained in:
parent
ad9cefeda3
commit
4ed67af5f2
1 changed files with 1 additions and 0 deletions
|
|
@ -462,6 +462,7 @@ def create_context_menu(self, col, name, view):
|
|||
def show_column_header_context_menu(self, pos, view=None):
|
||||
view = view or self
|
||||
idx = view.column_header.logicalIndexAt(pos)
|
||||
col = None
|
||||
if idx > -1 and idx < len(self.column_map):
|
||||
col = self.column_map[idx]
|
||||
name = unicode(self.model().headerData(idx, Qt.Horizontal, Qt.DisplayRole) or '')
|
||||
|
|
|
|||
Loading…
Reference in a new issue