Fix file opening bug

Authored by sallewell on May 26 2019, 4:24 PM.

Description

Fix file opening bug

A change in KDE/Qt has resulted in a QTemporaryFile size() of 0 after
KIO::copy_file overwrites it, previous versions show the size of the
copied file. As such garbage was read instead of the file content.

Fixed by closing the temporary file after opening it, reopening it using
a QFile which then has the correct size.
BUG: 407875
FIXED-IN: 2.2.0

Details

Committed
sallewellMay 26 2019, 4:24 PM
Parents
R465:cb441f00d467: SVN_SILENT made messages (.desktop file) - always resolve ours
Branches
Unknown
Tags
Unknown
References
tag: v2.2.0