mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Delay eval column headers so that language change works
This commit is contained in:
parent
e7bcf65c34
commit
ff18978f1c
@ -121,7 +121,9 @@ class BooksModel(QAbstractTableModel): # {{{
|
||||
count_changed_signal = pyqtSignal(int)
|
||||
searched = pyqtSignal(object)
|
||||
|
||||
orig_headers = {
|
||||
def __init__(self, parent=None, buffer=40):
|
||||
QAbstractTableModel.__init__(self, parent)
|
||||
self.orig_headers = {
|
||||
'title' : _("Title"),
|
||||
'ondevice' : _("On Device"),
|
||||
'authors' : _("Author(s)"),
|
||||
@ -134,10 +136,8 @@ class BooksModel(QAbstractTableModel): # {{{
|
||||
'series' : ngettext("Series", 'Series', 1),
|
||||
'last_modified' : _('Modified'),
|
||||
'languages' : _('Languages'),
|
||||
}
|
||||
}
|
||||
|
||||
def __init__(self, parent=None, buffer=40):
|
||||
QAbstractTableModel.__init__(self, parent)
|
||||
self.db = None
|
||||
|
||||
self.formatter = SafeFormat()
|
||||
|
Loading…
x
Reference in New Issue
Block a user