Qt5 Frontend - Saving a new copy with the same filename results in the document contents being removed
Steps to reproduce:
- Open any PDF document
- Save a copy of the file with the same name of the original opened document, from File->Save a Copy
Expected Behavior: The file contents should be overwritten normally, preserving the original contents of the file
Observed Result: The file contents are removed, and the file becomes an empty .pdf file
Might be a duplicate of #428 (closed)