mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #7221 (You cannot delete a Series listing from List view)
This commit is contained in:
parent
f9006854a0
commit
757b8fa4c0
@ -783,6 +783,10 @@ class BooksModel(QAbstractTableModel): # {{{
|
|||||||
self.db.set_rating(id, val)
|
self.db.set_rating(id, val)
|
||||||
elif column == 'series':
|
elif column == 'series':
|
||||||
val = val.strip()
|
val = val.strip()
|
||||||
|
if not val:
|
||||||
|
self.db.set_series(id, val)
|
||||||
|
self.db.set_series_index(id, 1.0)
|
||||||
|
else:
|
||||||
pat = re.compile(r'\[([.0-9]+)\]')
|
pat = re.compile(r'\[([.0-9]+)\]')
|
||||||
match = pat.search(val)
|
match = pat.search(val)
|
||||||
if match is not None:
|
if match is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user