I couldn't reproduce this behavior after reading @ownedbycats post. But Jim's post gave me the clue, so I can now reproduce the behavior even in calibre 5.
I believe I dealt with something similar when coding the Action Chains plugin. So attached below is a proposed fix. I just did a quick copy/paste of the corresponding method in Action Chains with some minor modifications. Further testing will be needed.
|