From f6a4ec5c57984567f348f9671df11332ecd9757c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 5 May 2010 15:05:34 -0600 Subject: [PATCH] Bulk metadata editing working --- src/calibre/gui2/custom_column_widgets.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/custom_column_widgets.py b/src/calibre/gui2/custom_column_widgets.py index 35d9f04e1f..611590f2c7 100644 --- a/src/calibre/gui2/custom_column_widgets.py +++ b/src/calibre/gui2/custom_column_widgets.py @@ -218,7 +218,10 @@ class Text(Base): def getter(self): if self.col_metadata['is_multiple']: 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() if not val: val = None