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:
|
elif col == 2:
|
||||||
def key(w):
|
def key(w):
|
||||||
locale = w[1]
|
locale = w[1]
|
||||||
return (calibre_langcode_to_name(locale.langcode), locale.countrycode)
|
return (calibre_langcode_to_name(locale.langcode) or ''), (locale.countrycode or '')
|
||||||
else:
|
else:
|
||||||
key = self.misspelled_text
|
key = self.misspelled_text
|
||||||
return key
|
return key
|
||||||
|
Loading…
x
Reference in New Issue
Block a user