mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1756732 [uncaught error column bar](https://bugs.launchpad.net/calibre/+bug/1756732)
This commit is contained in:
parent
ad9cefeda3
commit
4ed67af5f2
@ -462,6 +462,7 @@ class BooksView(QTableView): # {{{
|
|||||||
def show_column_header_context_menu(self, pos, view=None):
|
def show_column_header_context_menu(self, pos, view=None):
|
||||||
view = view or self
|
view = view or self
|
||||||
idx = view.column_header.logicalIndexAt(pos)
|
idx = view.column_header.logicalIndexAt(pos)
|
||||||
|
col = None
|
||||||
if idx > -1 and idx < len(self.column_map):
|
if idx > -1 and idx < len(self.column_map):
|
||||||
col = self.column_map[idx]
|
col = self.column_map[idx]
|
||||||
name = unicode(self.model().headerData(idx, Qt.Horizontal, Qt.DisplayRole) or '')
|
name = unicode(self.model().headerData(idx, Qt.Horizontal, Qt.DisplayRole) or '')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user