Fix #5206 (Series entered during conversion not available in library view)

This commit is contained in:
Kovid Goyal 2010-04-02 14:20:30 +05:30
parent f28aed0511
commit 294556038b

View File

@ -147,8 +147,9 @@ class MetadataWidget(Widget, Ui_Form):
if comments: if comments:
mi.comments = comments mi.comments = comments
mi.series_index = float(self.series_index.value()) mi.series_index = float(self.series_index.value())
if self.series.currentIndex() > -1: series = unicode(self.series.currentText()).strip()
mi.series = unicode(self.series.currentText()).strip() if series:
mi.series = series
tags = [t.strip() for t in unicode(self.tags.text()).strip().split(',')] tags = [t.strip() for t in unicode(self.tags.text()).strip().split(',')]
if tags: if tags:
mi.tags = tags mi.tags = tags