Wrong .opf syncing when deleting xptg template (and others?)

Bug #1445634 reported by arspr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

While investigating https://bugs.launchpad.net/calibre/+bug/1445617 I've found this one.

+ (Just in case). Previously fix all the typos the book has. :-( (Checkbook is great).

+ Open content.opf

+ Then delete page-template.xpgt from Files Browser.

+ page-template.xpgt is still linked in <manifest> in the version you see in screen (but not in the "real" version of it).

+ If you close and reopen content.opf, the file is actually gone.

+ BUT, if you edit anything in content.opf, then the "obsolete but in screen" version of it is taken as the good one. page-template.xpgt re-appears and if you perform Check book you get a "missing file in manifest" error.

(I think some kind of refresh of content.opf should be done even if it is opened while deleting a file).

arspr (arspr)
summary: - Wrong .opf syncing when deleting xptg template (and others
+ Wrong .opf syncing when deleting xptg template (and others?)
description: updated
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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