mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Be more robust when reading series index in edit metadata dialog
This commit is contained in:
parent
412c64e58b
commit
ad68b3cf83
@ -288,7 +288,10 @@ class MetadataSingleDialog(ResizableDialog, Ui_MetadataSingleDialog):
|
|||||||
si = self.db.series_index(row)
|
si = self.db.series_index(row)
|
||||||
if si is None:
|
if si is None:
|
||||||
si = 1.0
|
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('currentIndexChanged(int)'), self.enable_series_index)
|
||||||
QObject.connect(self.series, SIGNAL('editTextChanged(QString)'), self.enable_series_index)
|
QObject.connect(self.series, SIGNAL('editTextChanged(QString)'), self.enable_series_index)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user