Skip to content
Permalink
Browse files
py3 compat: Fix sorting in spell check dialog on language broken for …
…books that have unknown languages
  • Loading branch information
kovidgoyal committed May 24, 2021
1 parent bf119f0 commit aebe0f1f86437cea38acd81d3ee689470cf69b63
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/calibre/gui2/tweak_book/spell.py
@@ -698,7 +698,7 @@ def key(w):
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

0 comments on commit aebe0f1

Please sign in to comment.