Don't use KIO copy and QTemporaryFile to load xml definition files.

Authored by whiting on Mar 20 2019, 2:23 AM.

Description

Don't use KIO copy and QTemporaryFile to load xml definition files.

Since files are usually (maybe always?) local anyway, there's not
much reason to copy the file to a temporary file.
This also fixes QDomDocument::setContent failing on an empty file
when the QTemporaryFile is somehow empty after the copy has finished.

Reviewed by: Ian Wadham <iandw.au@gmail.com>
BUG: 405422

Details

Committed
whitingMar 20 2019, 2:25 AM
Reviewer
ian
Parents
R417:8ea6d05db22b: GIT_SILENT made messages (after extraction)
Branches
Unknown
Tags
Unknown
References
refs/backups/branch-405422-1553097919