mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #8993 (Trim trailing spaces from titles after editing titles)
This commit is contained in:
parent
2d4ec4406e
commit
f62a2e1a28
@ -825,7 +825,7 @@ class BooksModel(QAbstractTableModel): # {{{
|
||||
return False
|
||||
val = int(value.toInt()[0]) if column == 'rating' else \
|
||||
value.toDate() if column in ('timestamp', 'pubdate') else \
|
||||
unicode(value.toString())
|
||||
unicode(value.toString()).strip()
|
||||
id = self.db.id(row)
|
||||
books_to_refresh = set([id])
|
||||
if column == 'rating':
|
||||
|
Loading…
x
Reference in New Issue
Block a user