Error with a custom floating point column.

Bug #792864 reported by Alysha Terry
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Charles Haley

Bug Description

ERROR MESSAGE
calibre, version 0.8.4
ERROR: Unhandled exception: <b>TypeError</b>:QDoubleSpinBox.setValue(float): argument 1 has unexpected type 'NoneType'

Traceback (most recent call last):
  File "site-packages\calibre\gui2\library\delegates.py", line 291, in setEditorData
TypeError: QDoubleSpinBox.setValue(float): argument 1 has unexpected type 'NoneType'

I'm running Windows Vista Home Premium 64-bit. Calibre version 0.8.4.

I just updated about an hour ago and when I went to add a rating to a few books (in the custom column), I received the above error message. After I close out of the message, it lets me add the rating like normal. If I try to change an existing rating, I have no error messages or problems.

This isn't a big deal for me because I'm still able to save the ratings and whatnot, I just figured I would let you know. Thank you for such an amazing program!! :-)

Related branches

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 792864

Changing the component for this bug.

 assignee cbhaley
 status triaged

Changed in calibre:
assignee: nobody → Charles Haley (cbhaley)
status: New → Triaged
Revision history for this message
Charles Haley (cbhaley) wrote :

Workaround: use edit metadata (single) to set a value. Once it has a value, it can be edited from the library view.

Changed in calibre:
status: Triaged → Fix Committed
Revision history for this message
Alysha Terry (alysha-deshae) wrote :

I'm sorry, I might not have been clear when I posted it because I was in a rush. It can be edited from the library view without a pre-existing value, you just have to close out of the error message first.

Revision history for this message
Charles Haley (cbhaley) wrote :

You are correct, but that is an accident. I can imagine some situations where you would not be able to continue editing.

Fixed in branch lp:calibre. The fix will be in the next release. calibre is usually released every Friday.

Changed in calibre:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.