mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix #2820 ("QDoubleSpinBox.setValue() has an invalid type" error when attempting to edit metadata)
This commit is contained in:
parent
1eccb61801
commit
86abc60efe
@ -282,8 +282,10 @@ class MetadataSingleDialog(ResizableDialog, Ui_MetadataSingleDialog):
|
||||
|
||||
|
||||
self.initialize_combos()
|
||||
|
||||
self.series_index.setValue(self.db.series_index(row))
|
||||
si = self.series_index(row)
|
||||
if si is None:
|
||||
si = 1.0
|
||||
self.series_index.setValue(si)
|
||||
QObject.connect(self.series, SIGNAL('currentIndexChanged(int)'), self.enable_series_index)
|
||||
QObject.connect(self.series, SIGNAL('editTextChanged(QString)'), self.enable_series_index)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user