Fix editing custom column values in the book list not allowing change of case. Fixes #1251768 [[Glitch] Case change in library list cell](https://bugs.launchpad.net/calibre/+bug/1251768)

Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
Kovid Goyal 2013-11-18 18:36:45 +05:30
commit 75b77e9440

View File

@ -1004,7 +1004,8 @@ class BooksModel(QAbstractTableModel): # {{{
id = self.db.id(row)
books_to_refresh = set([id])
books_to_refresh |= self.db.set_custom(id, val, extra=s_index,
label=label, num=None, append=False, notify=True)
label=label, num=None, append=False, notify=True,
allow_case_change=True)
self.refresh_ids(list(books_to_refresh), current_row=row)
return True