mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Bulk metadata editing working
This commit is contained in:
parent
1ee1667f7b
commit
f6a4ec5c57
@ -218,7 +218,10 @@ class Text(Base):
|
|||||||
def getter(self):
|
def getter(self):
|
||||||
if self.col_metadata['is_multiple']:
|
if self.col_metadata['is_multiple']:
|
||||||
val = unicode(self.widgets[1].text()).strip()
|
val = unicode(self.widgets[1].text()).strip()
|
||||||
return [x.strip() for x in val.split(',')]
|
ans = [x.strip() for x in val.split(',') if x.strip()]
|
||||||
|
if not ans:
|
||||||
|
ans = None
|
||||||
|
return ans
|
||||||
val = unicode(self.widgets[1].currentText()).strip()
|
val = unicode(self.widgets[1].currentText()).strip()
|
||||||
if not val:
|
if not val:
|
||||||
val = None
|
val = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user