mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-04 03:27:00 -05:00 
			
		
		
		
	Metadata editing on device now works.
This commit is contained in:
		
							parent
							
								
									8a4707b0a8
								
							
						
					
					
						commit
						f96adf13a6
					
				@ -386,10 +386,10 @@ class DeviceBooksModel(BooksModel):
 | 
				
			|||||||
            val = unicode(value.toString().toUtf8(), 'utf-8').strip() 
 | 
					            val = unicode(value.toString().toUtf8(), 'utf-8').strip() 
 | 
				
			||||||
            idx = self.map[row]
 | 
					            idx = self.map[row]
 | 
				
			||||||
            if col == 0:
 | 
					            if col == 0:
 | 
				
			||||||
                self.db.title = val
 | 
					                self.db[idx].title = val
 | 
				
			||||||
                self.db.title_sorter = val
 | 
					                self.db[idx].title_sorter = val
 | 
				
			||||||
            elif col == 1:
 | 
					            elif col == 1:
 | 
				
			||||||
                self.db.authors = val
 | 
					                self.db[idx].authors = val
 | 
				
			||||||
            self.emit(SIGNAL("dataChanged(QModelIndex, QModelIndex)"), \
 | 
					            self.emit(SIGNAL("dataChanged(QModelIndex, QModelIndex)"), \
 | 
				
			||||||
                                index, index)
 | 
					                                index, index)
 | 
				
			||||||
            self.emit(SIGNAL('booklist_dirtied()'))
 | 
					            self.emit(SIGNAL('booklist_dirtied()'))
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user