mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
py3 compat: Fix sorting in spell check dialog on language broken for books that have unknown languages
This commit is contained in:
parent
bf119f0cf1
commit
aebe0f1f86
@ -698,7 +698,7 @@ class WordsModel(QAbstractTableModel):
|
||||
elif col == 2:
|
||||
def key(w):
|
||||
locale = w[1]
|
||||
return (calibre_langcode_to_name(locale.langcode), locale.countrycode)
|
||||
return (calibre_langcode_to_name(locale.langcode) or ''), (locale.countrycode or '')
|
||||
else:
|
||||
key = self.misspelled_text
|
||||
return key
|
||||
|
Loading…
x
Reference in New Issue
Block a user