Fix editing the authors via the book list not respecting the tweak to control author name splitting

This commit is contained in:
Kovid Goyal 2017-06-10 22:44:10 +05:30
parent 64d3ed4c26
commit 58dc106004
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1161,6 +1161,8 @@ class BooksModel(QAbstractTableModel): # {{{
val = val.split(',')
self.db.set_languages(id, val)
else:
if column == 'authors' and val:
val = authors_to_string(string_to_authors(val))
books_to_refresh |= self.db.set(row, column, val,
allow_case_change=True)
self.refresh_ids(list(books_to_refresh), row)