mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04: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()
|
||||
idx = self.map[row]
|
||||
if col == 0:
|
||||
self.db.title = val
|
||||
self.db.title_sorter = val
|
||||
self.db[idx].title = val
|
||||
self.db[idx].title_sorter = val
|
||||
elif col == 1:
|
||||
self.db.authors = val
|
||||
self.db[idx].authors = val
|
||||
self.emit(SIGNAL("dataChanged(QModelIndex, QModelIndex)"), \
|
||||
index, index)
|
||||
self.emit(SIGNAL('booklist_dirtied()'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user