mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05:00 
			
		
		
		
	Fix #1333932 [Edit Book: Double-click on a file category raises a error](https://bugs.launchpad.net/calibre/+bug/1333932)
This commit is contained in:
		
							parent
							
								
									0ead2c0eb7
								
							
						
					
					
						commit
						70db763744
					
				@ -574,7 +574,9 @@ class FileList(QTreeWidget):
 | 
				
			|||||||
            self.reorder_spine.emit(order)
 | 
					            self.reorder_spine.emit(order)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def item_double_clicked(self, item, column):
 | 
					    def item_double_clicked(self, item, column):
 | 
				
			||||||
        self._request_edit(item)
 | 
					        category = unicode(item.data(0, CATEGORY_ROLE).toString())
 | 
				
			||||||
 | 
					        if category:
 | 
				
			||||||
 | 
					            self._request_edit(item)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _request_edit(self, item):
 | 
					    def _request_edit(self, item):
 | 
				
			||||||
        category = unicode(item.data(0, CATEGORY_ROLE).toString())
 | 
					        category = unicode(item.data(0, CATEGORY_ROLE).toString())
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user