mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-20 16:36:10 +01:00
Metadata editing on device now works.
This commit is contained in:
parent
8a4707b0a8
commit
f96adf13a6
1 changed files with 3 additions and 3 deletions
|
|
@ -386,10 +386,10 @@ def setData(self, index, value, role):
|
|||
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…
Reference in a new issue