From bd5ac85d4b636834bf11ad457af1eb5924b25388 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Wed, 6 May 2020 16:13:20 +0100 Subject: [PATCH] Fix #1877101. Commit 8a86cc1 on 7 March introduced a regression breaking the user category editor for all custom columns. Fixed. --- src/calibre/gui2/dialogs/tag_categories.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/dialogs/tag_categories.py b/src/calibre/gui2/dialogs/tag_categories.py index d3d13ee08f..efb840b169 100644 --- a/src/calibre/gui2/dialogs/tag_categories.py +++ b/src/calibre/gui2/dialogs/tag_categories.py @@ -38,7 +38,7 @@ class TagCategories(QDialog, Ui_TagCategories): If you add a category, it is permissible to set v to zero. If you delete a category, ensure that both the name and the category match. ''' - category_labels_orig = ['', 'authors', 'series', 'publisher', 'tags'] + category_labels_orig = ['', 'authors', 'series', 'publisher', 'tags', 'languages'] def __init__(self, window, db, on_category=None, book_ids=None): QDialog.__init__(self, window) @@ -68,7 +68,8 @@ class TagCategories(QDialog, Ui_TagCategories): self.category_labels = self.category_labels_orig[:] self.category_icons = [None, QIcon(I('user_profile.png')), QIcon(I('series.png')), - QIcon(I('publisher.png')), QIcon(I('tags.png'))] + QIcon(I('publisher.png')), QIcon(I('tags.png')), + QIcon(I('languages.png'))] self.category_values = [None, lambda: [t.original_name.replace('|', ',') for t in self.db_categories['authors']], lambda: [t.original_name for t in self.db_categories['series']],