mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 23:46:00 +01:00
Be more robust when reading series index in edit metadata dialog
This commit is contained in:
parent
412c64e58b
commit
ad68b3cf83
1 changed files with 4 additions and 1 deletions
|
|
@ -288,7 +288,10 @@ def __init__(self, window, row, db, accepted_callback=None):
|
|||
si = self.db.series_index(row)
|
||||
if si is None:
|
||||
si = 1.0
|
||||
self.series_index.setValue(si)
|
||||
try:
|
||||
self.series_index.setValue(float(si))
|
||||
except:
|
||||
self.series_index.setValue(1.0)
|
||||
QObject.connect(self.series, SIGNAL('currentIndexChanged(int)'), self.enable_series_index)
|
||||
QObject.connect(self.series, SIGNAL('editTextChanged(QString)'), self.enable_series_index)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue