Fix bug #1251768 by allowing case changes when editing any text-based custom column directly on the spreadsheet.

This commit is contained in:
Charles Haley 2013-11-18 13:04:48 +01:00
parent b1652a2316
commit 4d6a88234b

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