mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05:00 
			
		
		
		
	Fix #860943 (Changing language in tag-browser)
This commit is contained in:
		
						commit
						8d4d33253f
					
				@ -63,9 +63,9 @@ class TagTreeItem(object): # {{{
 | 
				
			|||||||
            self.category_key = category_key
 | 
					            self.category_key = category_key
 | 
				
			||||||
            self.temporary = temporary
 | 
					            self.temporary = temporary
 | 
				
			||||||
            self.tag = Tag(data, category=category_key,
 | 
					            self.tag = Tag(data, category=category_key,
 | 
				
			||||||
                   is_editable=category_key not in ['news', 'search', 'identifiers'],
 | 
					                   is_editable=category_key not in
 | 
				
			||||||
 | 
					                            ['news', 'search', 'identifiers', 'languages'],
 | 
				
			||||||
                   is_searchable=category_key not in ['search'])
 | 
					                   is_searchable=category_key not in ['search'])
 | 
				
			||||||
 | 
					 | 
				
			||||||
        elif self.type == self.TAG:
 | 
					        elif self.type == self.TAG:
 | 
				
			||||||
            self.icon_state_map[0] = QVariant(data.icon)
 | 
					            self.icon_state_map[0] = QVariant(data.icon)
 | 
				
			||||||
            self.tag = data
 | 
					            self.tag = data
 | 
				
			||||||
 | 
				
			|||||||
@ -1740,7 +1740,7 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
 | 
				
			|||||||
                use_sort_as_name = True
 | 
					                use_sort_as_name = True
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
                use_sort_as_name = False
 | 
					                use_sort_as_name = False
 | 
				
			||||||
            is_editable = category not in ['news', 'rating']
 | 
					            is_editable = category not in ['news', 'rating', 'languages']
 | 
				
			||||||
            categories[category] = [tag_class(formatter(r.n), count=r.c, id=r.id,
 | 
					            categories[category] = [tag_class(formatter(r.n), count=r.c, id=r.id,
 | 
				
			||||||
                                        avg=avgr(r), sort=r.s, icon=icon,
 | 
					                                        avg=avgr(r), sort=r.s, icon=icon,
 | 
				
			||||||
                                        tooltip=tooltip, category=category,
 | 
					                                        tooltip=tooltip, category=category,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user