calibre 0.9: strange display behavior for formats

Bug #1215885 reported by ip on 2013-08-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

I had quality problems with a few books converted a while back from mobi to epub, so suppressed the epub versions. I was surprised to see that the column "formats" (I have the French version) went empty for those books, while the books' metadatas to the right of the screen said correctly that it still had the mobi version.

I then reconverted from mobi to epub, and the column now has mobi, but lacks the epub which appears correctly in the book's metadata.

I have calibre 0.9 64 bits and a Windows 7 PC.

ip (isabelle-pfeiffer) wrote :

I made a mistake: this concerns the new 1.0 version.

Charles Haley (cbhaley) wrote :

@Kovid: I note that composite columns are not updated when a job finishes, so the formats composite column is not updated. This could be what the bug report is about. Swinging the mouse over the the field refreshes it.

I am not sure that to do about this, if anything. We sure don't want to do a general gui refresh whenever a job finishes. However, the book details window updates correctly, so something is notifying the gui. Perhaps that same something could do a refresh on the specific rows.

Kovid Goyal (kovid) wrote :

@charles: I think you can do that by inserting the following line at line 266 of actions/convert.py

self.library_view.models().refresh_ids((book_id,))

Since you have a setup that replicates the issue, let me know if that fixes it.

Kovid Goyal (kovid) wrote :

Sorry, make that

self.library_view.model().refresh_ids((book_id,))

Charles Haley (cbhaley) wrote :

Pushed.

Charles Haley (cbhaley) wrote :

@isabelle-pfeiffer: the fix updates the formats column when the conversion finishes. This will fix the problem you report if the formats appear correctly by sliding your mouse pointer over their cells in the library view.

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

 status fixreleased

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

Other bug subscribers