Again, that will break it for people with separate keys. The way to long term software stability, robustness and maintainability is to not pile up hacks like this, but to fix things properly. In this case the fix needs to happen in Qt code, not calibre code. I suggest reporting a bug at
https://bugreports.qt.io/